Pull to refresh

Comments 2

При попытке установки discord.py выдает:
C:\Users\Пользователь>pip install discord.py
Collecting discord.py
Using cached https://files.pythonhosted.org/packages/7c/93/30fa8b5307328e5f37a37d13afb33677ef68e4cb4e98646427d6b400958c/discord.py-1.2.5-py3-none-any.whl
Collecting websockets<7.0,>=6.0
Using cached https://files.pythonhosted.org/packages/4e/2a/56e60bb4c3696bc736998cc13c3fa1a36210609d7e1a3f2519857b420245/websockets-6.0.tar.gz
Collecting aiohttp<3.6.0,>=3.3.0
Using cached https://files.pythonhosted.org/packages/0f/58/c8b83f999da3b13e66249ea32f325be923791c0c10aee6cf16002a3effc1/aiohttp-3.5.4.tar.gz
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: 'e:\python_system\python.exe' 'e:\python_system\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\73B5~1\AppData\Local\Temp\tmpf91b68cp'
cwd: C:\Users\Пользователь\AppData\Local\Temp\pip-install-5srpnsv4\aiohttp
Complete output (24 lines):
running dist_info
creating C:\Users\Пользователь\AppData\Local\Temp\pip-modern-metadata-q8bjye7e\aiohttp.egg-info
writing C:\Users\Пользователь\AppData\Local\Temp\pip-modern-metadata-q8bjye7e\aiohttp.egg-info\PKG-INFO
writing dependency_links to C:\Users\Пользователь\AppData\Local\Temp\pip-modern-metadata-q8bjye7e\aiohttp.egg-info\dependency_links.txt
writing requirements to C:\Users\Пользователь\AppData\Local\Temp\pip-modern-metadata-q8bjye7e\aiohttp.egg-info\requires.txt
writing top-level names to C:\Users\Пользователь\AppData\Local\Temp\pip-modern-metadata-q8bjye7e\aiohttp.egg-info\top_level.txt
writing manifest file 'C:\Users\Пользователь\AppData\Local\Temp\pip-modern-metadata-q8bjye7e\aiohttp.egg-info\SOURCES.txt'
reading manifest file 'C:\Users\Пользователь\AppData\Local\Temp\pip-modern-metadata-q8bjye7e\aiohttp.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
Error in sitecustomize; set PYTHONVERBOSE for traceback:
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xcf in position 0: invalid continuation byte (sitecustomize.py, line 21)
warning: no files found matching 'aiohttp' anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyd' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.lib' found anywhere in distribution
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.a' found anywhere in distribution
warning: no previously-included files matching '*.obj' found anywhere in distribution
warning: no previously-included files found matching 'aiohttp\*.html'
no previously-included directories found matching 'docs\_build'
writing manifest file 'C:\Users\Пользователь\AppData\Local\Temp\pip-modern-metadata-q8bjye7e\aiohttp.egg-info\SOURCES.txt'
creating 'C:\Users\Пользователь\AppData\Local\Temp\pip-modern-metadata-q8bjye7e\aiohttp.dist-info'
error: invalid command 'bdist_wheel'
----------------------------------------
ERROR: Command errored out with exit status 1: 'e:\python_system\python.exe' 'e:\python_system\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\73B5~1\AppData\Local\Temp\tmpf91b68cp' Check the logs for full command output.

Что делать?
Скорее всего проблема в вашем антивирусе. Попробуйте отключить его на время установки пакета. Если это не помогло, то пробуйте в консоли прописать
$ pip3 install wheel

Далее пропишите
$ python3 setup.py bdist_wheel

Вполне возможно что у вас установлено две версии python. попробуйте прописать
$ pip3 install discord.py

Если все выше перечисленное не помогло, то рекомендую обратиться на форум stackoverflow с этой проблемой.
Sign up to leave a comment.

Articles