我尝试安装discord.py,但出了问题,我不知道为什么,有人可以帮助我吗?我已经执行了这个命令: pip install discord现在我正在使用 python 3.9.0,也许我应该使用版本 3.5.3?我的终端:PS C:\Users\badreddinelaghlid\Desktop\codaggio con python> pip install discord Collecting discord Downloading discord-1.0.1-py3-none-any.whl (1.1 kB)Collecting discord.py>=1.0.1 Downloading discord.py-1.5.1-py3-none-any.whl (701 kB) |████████████████████████████████| 701 kB 1.3 MB/sCollecting aiohttp<3.7.0,>=3.6.0 Downloading aiohttp-3.6.3.tar.gz (1.1 MB) |████████████████████████████████| 1.1 MB 726 kB/s Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... doneCollecting yarl<1.6.0,>=1.0 Downloading yarl-1.5.1.tar.gz (173 kB) |████████████████████████████████| 173 kB 1.6 MB/s Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... doneCollecting chardet<4.0,>=2.0 Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB) |████████████████████████████████| 133 kB 2.2 MB/sCollecting attrs>=17.3.0 Downloading attrs-20.2.0-py2.py3-none-any.whl (48 kB) |████████████████████████████████| 48 kB 2.2 MB/sCollecting async-timeout<4.0,>=3.0 Downloading async_timeout-3.0.1-py3-none-any.whl (8.2 kB)Collecting multidict<5.0,>=4.5 Downloading multidict-4.7.6.tar.gz (50 kB) |████████████████████████████████| 50 kB 3.1 MB/s Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... doneCollecting idna>=2.0我已经很长时间没有编码了,所以..我可能忘记了一些事情..
2 回答
慕哥9229398
TA贡献1877条经验 获得超6个赞
问题来了:Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
。你需要下载它。
神不在的星期二
TA贡献1963条经验 获得超6个赞
discord.py
Windows上存在一些问题python3.9
,请参阅: https ://github.com/Rapptz/discord.py/issues/5984
我建议你使用python<=3.8
因为3.9.0
太新了。
添加回答
举报
0/150
提交
取消