安装discord.py时出错

我尝试安装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/s

Collecting 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 ... done

Collecting 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 ... done

Collecting chardet<4.0,>=2.0

  Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)

     |████████████████████████████████| 133 kB 2.2 MB/s

Collecting attrs>=17.3.0

  Downloading attrs-20.2.0-py2.py3-none-any.whl (48 kB)

     |████████████████████████████████| 48 kB 2.2 MB/s

Collecting 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 ... done

Collecting idna>=2.0

我已经很长时间没有编码了,所以..我可能忘记了一些事情..


翻阅古今
浏览 116回答 2
2回答

慕哥9229398

问题来了:Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/。你需要下载它。

神不在的星期二

discord.pyWindows上存在一些问题python3.9,请参阅:&nbsp;https ://github.com/Rapptz/discord.py/issues/5984我建议你使用python<=3.8因为3.9.0太新了。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python