-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Как воспроизвести:
- делаю новый интерпритатор в проекте на основе 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
). После этого установка пакета проходит нормально.
Metadata
Metadata
Assignees
Labels
No labels