ОШИБКА django-softdelete: команда выполнена с ошибкой со статусом выхода 1: python setup.py egg_info Проверьте журналы на наличие полного вывода команды

#python #django

#python #django

Вопрос:

Я пытаюсь загрузить django-softdelete ~= 0.9.1 на другом (Windows) устройстве, чем я обычно использую через pip. Однако при запуске я получаю сообщение об ошибке

  ERROR: Command errored out with exit status 1:
     command: 'c:userspelizzyappdatalocalprogramspythonpython38-32python.exe' -c 'im
port sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\PelizzY\AppData\Local\Temp
pip-install-32uur6be\django-softdelete\setup.py'"'"'; __file__='"'"'C:\Users\PelizzY\A
ppData\Local\Temp\pip-install-32uur6be\django-softdelete\setup.py'"'"';f=getattr(tokeni
ze, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.cl
ose();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:UsersPelizzYA
ppDataLocalTemppip-pip-egg-info-_tq6m_l3'
         cwd: C:UsersPelizzYAppDataLocalTemppip-install-32uur6bedjango-softdelete
    Complete output (44 lines):
    WARNING: The wheel package is not available.
      ERROR: Command errored out with exit status 1:
       command: 'c:userspelizzyappdatalocalprogramspythonpython38-32python.exe' -u -
c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\PelizzY\AppData\Local\
Temp\pip-wheel-300gjngn\setuptools-hg\setup.py'"'"'; __file__='"'"'C:\Users\PelizzY\Ap
pData\Local\Temp\pip-wheel-300gjngn\setuptools-hg\setup.py'"'"';f=getattr(tokenize, '"'
"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();e
xec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:UsersPelizzYAppDataLocal
Temppip-wheel-3w4e_e8i'
           cwd: C:UsersPelizzYAppDataLocalTemppip-wheel-300gjngnsetuptools-hg
      Complete output (6 lines):
      usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
         or: setup.py --help [cmd1 cmd2 ...]
         or: setup.py --help-commands
         or: setup.py cmd --help
    
      error: invalid command 'bdist_wheel'
      ----------------------------------------
      ERROR: Failed building wheel for setuptools-hg
    ERROR: Failed to build one or more wheels
    Traceback (most recent call last):
      File "c:userspelizzyappdatalocalprogramspythonpython38-32libsite-packagesset
uptoolsinstaller.py", line 126, in fetch_build_egg
        subprocess.check_call(cmd)
      File "c:userspelizzyappdatalocalprogramspythonpython38-32libsubprocess.py", l
ine 364, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['c:\users\pelizzy\appdata\local\programs\
python\python38-32\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no
-deps', '-w', 'C:\Users\PelizzY\AppData\Local\Temp\tmp2i04c4ia', '--quiet', 'setuptool
s_hg']' returned non-zero exit status 1.
    
    The above exception was the direct cause of the following exception:
    
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:UsersPelizzYAppDataLocalTemppip-install-32uur6bedjango-softdeletesetup
.py", line 3, in <module>
        setup(name='django-softdelete',
      File "c:userspelizzyappdatalocalprogramspythonpython38-32libsite-packagesset
uptools__init__.py", line 152, in setup
        _install_setup_requires(attrs)
      File "c:userspelizzyappdatalocalprogramspythonpython38-32libsite-packagesset
uptools__init__.py", line 147, in _install_setup_requires
        dist.fetch_build_eggs(dist.setup_requires)
      File "c:userspelizzyappdatalocalprogramspythonpython38-32libsite-packagesset
uptoolsdist.py", line 673, in fetch_build_eggs
        resolved_dists = pkg_resources.working_set.resolve(
      File "c:userspelizzyappdatalocalprogramspythonpython38-32libsite-packagespkg
_resources__init__.py", line 764, in resolve
        dist = best[req.key] = env.best_match(
      File "c:userspelizzyappdatalocalprogramspythonpython38-32libsite-packagespkg
_resources__init__.py", line 1049, in best_match
        return self.obtain(req, installer)
      File "c:userspelizzyappdatalocalprogramspythonpython38-32libsite-packagespkg
_resources__init__.py", line 1061, in obtain
        return installer(requirement)
      File "c:userspelizzyappdatalocalprogramspythonpython38-32libsite-packagesset
uptoolsdist.py", line 732, in fetch_build_egg
        return fetch_build_egg(self, req)
      File "c:userspelizzyappdatalocalprogramspythonpython38-32libsite-packagesset
uptoolsinstaller.py", line 128, in fetch_build_egg
        raise DistutilsError(str(e)) from e
    distutils.errors.DistutilsError: Command '['c:\users\pelizzy\appdata\local\programs
\python\python38-32\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--
no-deps', '-w', 'C:\Users\PelizzY\AppData\Local\Temp\tmp2i04c4ia', '--quiet', 'setupto
ols_hg']' returned non-zero exit status 1.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for f
ull command output.
  

Я попытался установить через pip install -e git://github.com/makinacorpus/django-safedelete.git#egg=django-safedelete и вручную все ту же ошибку. Может быть, у кого-то была эта проблема

Ответ №1:

Строка: WARNING: The wheel package is not available. указывает, что вам, вероятно, нужно сначала установить wheel пакет.

Попробуйте выполнить: pip install wheel а затем вашу исходную команду установки.