Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ошибка при установке в PyCharm 2020.1 #19

Open
zhelyabuzhsky opened this issue May 27, 2020 · 0 comments
Open

Ошибка при установке в PyCharm 2020.1 #19

zhelyabuzhsky opened this issue May 27, 2020 · 0 comments

Comments

@zhelyabuzhsky
Copy link

Как воспроизвести:

  • делаю новый интерпритатор в проекте на основе Python 3.7
  • открываю вкладку Terminal
  • ввожу % pip install python-rest-framework
  • получаю следующее сообщение об ошибке
Collecting python-rest-framework
  Using cached Python-Rest-Framework-0.3.13.tar.gz (28 kB)
    ERROR: Command errored out with exit status 1:
     command: /Users/zhelyabuzhsky/.venvs/data_storage_service/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/gh/n5xvlvvs2s11ktwgn1rtft_00000gn/T/pip-install-vcp1l9un/python-rest-framework/setup.py'"'"'; __file__='"'"'/private/var/folders/gh/n5xvlvvs2s11ktwgn1rtft_00000gn/T/pip-install-vcp1l9un/python-rest-framework/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/gh/n5xvlvvs2s11ktwgn1rtft_00000gn/T/pip-pip-egg-info-s7ydksip
         cwd: /private/var/folders/gh/n5xvlvvs2s11ktwgn1rtft_00000gn/T/pip-install-vcp1l9un/python-rest-framework/
    Complete output (46 lines):
    WARNING: The wheel package is not available.
    WARNING: The wheel package is not available.
    WARNING: The wheel package is not available.
      ERROR: Command errored out with exit status 1:
       command: /Users/zhelyabuzhsky/.venvs/data_storage_service/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/gh/n5xvlvvs2s11ktwgn1rtft_00000gn/T/pip-wheel-n6gxpo31/tornado/setup.py'"'"'; __file__='"'"'/private/var/folders/gh/n5xvlvvs2s11ktwgn1rtft_00000gn/T/pip-wheel-n6gxpo31/tornado/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/gh/n5xvlvvs2s11ktwgn1rtft_00000gn/T/pip-wheel-i5dtr2wh
           cwd: /private/var/folders/gh/n5xvlvvs2s11ktwgn1rtft_00000gn/T/pip-wheel-n6gxpo31/tornado/
      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 tornado
    ERROR: Failed to build one or more wheels
    Traceback (most recent call last):
      File "/Users/zhelyabuzhsky/.venvs/data_storage_service/lib/python3.7/site-packages/setuptools/installer.py", line 128, in fetch_build_egg
        subprocess.check_call(cmd)
      File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 363, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['/Users/zhelyabuzhsky/.venvs/data_storage_service/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/var/folders/gh/n5xvlvvs2s11ktwgn1rtft_00000gn/T/tmpr6p7yyfg', '--quiet', 'tornado>=5.0']' returned non-zero exit status 1.
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/gh/n5xvlvvs2s11ktwgn1rtft_00000gn/T/pip-install-vcp1l9un/python-rest-framework/setup.py", line 50, in <module>
        zip_safe=True,
      File "/Users/zhelyabuzhsky/.venvs/data_storage_service/lib/python3.7/site-packages/setuptools/__init__.py", line 143, in setup
        _install_setup_requires(attrs)
      File "/Users/zhelyabuzhsky/.venvs/data_storage_service/lib/python3.7/site-packages/setuptools/__init__.py", line 138, in _install_setup_requires
        dist.fetch_build_eggs(dist.setup_requires)
      File "/Users/zhelyabuzhsky/.venvs/data_storage_service/lib/python3.7/site-packages/setuptools/dist.py", line 698, in fetch_build_eggs
        replace_conflicting=True,
      File "/Users/zhelyabuzhsky/.venvs/data_storage_service/lib/python3.7/site-packages/pkg_resources/__init__.py", line 783, in resolve
        replace_conflicting=replace_conflicting
      File "/Users/zhelyabuzhsky/.venvs/data_storage_service/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1066, in best_match
        return self.obtain(req, installer)
      File "/Users/zhelyabuzhsky/.venvs/data_storage_service/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1078, in obtain
        return installer(requirement)
      File "/Users/zhelyabuzhsky/.venvs/data_storage_service/lib/python3.7/site-packages/setuptools/dist.py", line 754, in fetch_build_egg
        return fetch_build_egg(self, req)
      File "/Users/zhelyabuzhsky/.venvs/data_storage_service/lib/python3.7/site-packages/setuptools/installer.py", line 130, in fetch_build_egg
        raise DistutilsError(str(e))
    distutils.errors.DistutilsError: Command '['/Users/zhelyabuzhsky/.venvs/data_storage_service/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/var/folders/gh/n5xvlvvs2s11ktwgn1rtft_00000gn/T/tmpr6p7yyfg', '--quiet', 'tornado>=5.0']' returned non-zero exit status 1.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Как обойти: перед установкой python-rest-framework установить wheel (% pip install wheel). После этого установка пакета проходит нормально.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant