#python #python-3.x #discord.py-rewrite
#python #python-3.x #discord.py
Вопрос:
Я давно хотел создать бота для discord, используя discord.py , но всякий раз, когда я устанавливаю пакет, он выдает ошибку, подобную этой
**********************
* Accellerated build *
**********************
running bdist_wheel
running build
running build_py
creating build
creating buildlib.win-amd64-3.9
creating buildlib.win-amd64-3.9yarl
copying yarl_quoting.py -> buildlib.win-amd64-3.9yarl
copying yarl_quoting_py.py -> buildlib.win-amd64-3.9yarl
copying yarl_url.py -> buildlib.win-amd64-3.9yarl
copying yarl__init__.py -> buildlib.win-amd64-3.9yarl
running egg_info
writing yarl.egg-infoPKG-INFO
writing dependency_links to yarl.egg-infodependency_links.txt
writing requirements to yarl.egg-inforequires.txt
writing top-level names to yarl.egg-infotop_level.txt
reading manifest file 'yarl.egg-infoSOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.cache' found anywhere in distribution
warning: no previously-included files found matching 'yarl*.html'
warning: no previously-included files found matching 'yarl*.so'
warning: no previously-included files found matching 'yarl*.pyd'
no previously-included directories found matching 'docs_build'
writing manifest file 'yarl.egg-infoSOURCES.txt'
copying yarl__init__.pyi -> buildlib.win-amd64-3.9yarl
copying yarl_quoting_c.c -> buildlib.win-amd64-3.9yarl
copying yarl_quoting_c.pyi -> buildlib.win-amd64-3.9yarl
copying yarl_quoting_c.pyx -> buildlib.win-amd64-3.9yarl
copying yarlpy.typed -> buildlib.win-amd64-3.9yarl
running build_ext
building 'yarl._quoting_c' extension
error: Microsoft Visual C 14.0 or greater is required. Get it with "Microsoft C Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for yarl
Failed to build multidict yarl
ERROR: Could not build wheels for multidict, yarl which use PEP 517 and cannot be installed directly
Я попытался установить колесо с помощью pip и попытался установить инструменты сборки Microsoft C в нижней части сообщения об ошибке, но это все еще не сработало. Любая помощь будет оценена.
Ответ №1:
использование python 3.8.6 вместо 3.9 сработало для меня!