(Python:discord.py)错误:无法为使用 PEP 517 且无法直接安装的 multidict、yarl 构建轮子 [英] (Python: discord.py) ERROR: Could not build wheels for multidict, yarl which use PEP 517 and cannot be installed directly

查看:39
本文介绍了(Python:discord.py)错误:无法为使用 PEP 517 且无法直接安装的 multidict、yarl 构建轮子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试使用 pip install 下载 discord.py,在标题中给了我错误消息.我使用 cmd 和命令 py -m pip install -U discord 安装,cmd 也在管理员中运行.尝试使用pip、pip3和pip3.9,均无效.

trying to download discord.py using pip install, gave me the error message in the title. I installed using cmd and the commands py -m pip install -U discord, the cmd was also run in admin. tried using pip, pip3, and pip3.9, all of which didnt work.

我尝试卸载/重新安装/升级(按此顺序)上述库:

I tried uninstalling/reinstalling/upgrading (in that order) the said libraries:

  • pip
  • 亚尔
  • multidict
  • 轮子
  • 设置工具

我尝试过的python版本(在所有版本中都使用默认设置下载,没有任何更改):python-3.9.0-amd64.exepython-3.9.0.exe

versions of python that I tried (in all versions are downloaded with default settings with nothing changed): python-3.9.0-amd64.exe python-3.9.0.exe

我尝试研究轮子并尝试使用 --no-binary :all: 进行安装,但它在下面给出了相同的错误消息.

I tried researching about wheels and tried installing with --no-binary :all: as well, but it gave the same error message below.

在我尝试过的所有迭代中,它产生了完全相同的错误消息,没有任何偏差

in all the iterations of what I have tried, it churned out the exact same error message without any deviation

请帮忙:<

  Using cached discord-1.0.1-py3-none-any.whl (1.1 kB)
Collecting discord.py>=1.0.1
  Using cached discord.py-1.5.1-py3-none-any.whl (701 kB)
Processing c:usersmtappdatalocalpipcachewheels69cd6b99bc6ec9dab11f3756d31fb8506d3ecf07aea58b6201f539aiohttp-3.6.3-py3-none-any.whl
Collecting attrs>=17.3.0
  Using cached attrs-20.2.0-py2.py3-none-any.whl (48 kB)
Collecting chardet<4.0,>=2.0
  Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting async-timeout<4.0,>=3.0
  Using cached async_timeout-3.0.1-py3-none-any.whl (8.2 kB)
Collecting yarl<1.6.0,>=1.0
  Using cached yarl-1.5.1.tar.gz (173 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting multidict<5.0,>=4.5
  Using cached multidict-4.7.6.tar.gz (50 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting idna>=2.0
  Using cached idna-2.10-py2.py3-none-any.whl (58 kB)
Building wheels for collected packages: yarl, multidict
  Building wheel for yarl (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:usersmtappdatalocalprogramspythonpython39python.exe' 'c:usersmtappdatalocalprogramspythonpython39libsite-packagespip\_vendorpep517\_in_process.py' build_wheel 'C:UsersMTAppDataLocalTemp	mptlhkh7zi'
       cwd: C:UsersMTAppDataLocalTemppip-install-nztu4nu2yarl
  Complete output (35 lines):
  **********************
  * 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-info
equires.txt
  writing top-level names to yarl.egg-info	op_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
  Building wheel for multidict (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:usersmtappdatalocalprogramspythonpython39python.exe' 'c:usersmtappdatalocalprogramspythonpython39libsite-packagespip\_vendorpep517\_in_process.py' build_wheel 'C:UsersMTAppDataLocalTemp	mpzb98brnr'
       cwd: C:UsersMTAppDataLocalTemppip-install-nztu4nu2multidict
  Complete output (40 lines):
  **********************
  * Accellerated build *
  **********************
  running bdist_wheel
  running build
  running build_py
  creating build
  creating buildlib.win-amd64-3.9
  creating buildlib.win-amd64-3.9multidict
  copying multidict\_abc.py -> buildlib.win-amd64-3.9multidict
  copying multidict\_compat.py -> buildlib.win-amd64-3.9multidict
  copying multidict\_multidict_base.py -> buildlib.win-amd64-3.9multidict
  copying multidict\_multidict_py.py -> buildlib.win-amd64-3.9multidict
  copying multidict\__init__.py -> buildlib.win-amd64-3.9multidict
  running egg_info
  writing multidict.egg-infoPKG-INFO
  writing dependency_links to multidict.egg-infodependency_links.txt
  writing top-level names to multidict.egg-info	op_level.txt
  reading manifest file 'multidict.egg-infoSOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no previously-included files matching '*.pyc' found anywhere in distribution
  warning: no previously-included files found matching 'multidict\_multidict.html'
  warning: no previously-included files found matching 'multidict*.so'
  warning: no previously-included files found matching 'multidict*.pyd'
  warning: no previously-included files found matching 'multidict*.pyd'
  no previously-included directories found matching 'docs\_build'
  writing manifest file 'multidict.egg-infoSOURCES.txt'
  copying multidict\__init__.pyi -> buildlib.win-amd64-3.9multidict
  copying multidict\_multidict.c -> buildlib.win-amd64-3.9multidict
  copying multidictpy.typed -> buildlib.win-amd64-3.9multidict
  creating buildlib.win-amd64-3.9multidict\_multilib
  copying multidict\_multilibdefs.h -> buildlib.win-amd64-3.9multidict\_multilib
  copying multidict\_multilibdict.h -> buildlib.win-amd64-3.9multidict\_multilib
  copying multidict\_multilibistr.h -> buildlib.win-amd64-3.9multidict\_multilib
  copying multidict\_multilibiter.h -> buildlib.win-amd64-3.9multidict\_multilib
  copying multidict\_multilibpair_list.h -> buildlib.win-amd64-3.9multidict\_multilib
  copying multidict\_multilibviews.h -> buildlib.win-amd64-3.9multidict\_multilib
  running build_ext
  building 'multidict._multidict' 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 multidict
Failed to build yarl multidict
ERROR: Could not build wheels for yarl, multidict which use PEP 517 and cannot be installed directly```

推荐答案

我今天也遇到了完全相同的问题,因为我下载了 node.js 并将我的 python 8 更新到了 python 9,我不得不重新安装我的所有模块包括 dpy.

I also had the exact same issue today, since i downloaded node.js and it updated my python 8 to python 9 and i had to reinstall all of my moduels including dpy.

解决办法是照它说的去做

The solution is to follow what it says

<代码>错误:需要 Microsoft Visual C++ 14.0 或更高版本.使用Microsoft C++ 构建工具"获取它:https://visualstudio.microsoft.com/visual-cpp-build-tools/

https://visualstudio.microsoft.com/visual-cpp-build-工具/

这篇关于(Python:discord.py)错误:无法为使用 PEP 517 且无法直接安装的 multidict、yarl 构建轮子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆