【问题标题】:Could not install `discord.py` due to EnvironmentError由于 EnvironmentError 无法安装“discord.py”
【发布时间】:2020-09-22 22:49:57
【问题描述】:

[Windows 10] [Python 3.8.3] 其余错误:Could not find a suitable TLS CA certificate bundle, invalid path: path/to/ca-bundle.crt 我试过pip3 install -U discord.pypy -3 -m pip3 install -U discord.pypip3 install discord.py,但我看不到安装它。

【问题讨论】:

  • 这可能与您尝试将其安装到的目录有关。尝试将其安装到 C:\Windows\system32

标签: python error-handling discord discord.py


【解决方案1】:

如果您正在使用诸如 PyCharm for python 之类的第 3 方程序,请在终端上写下:

python -m pip install discord.py

在 IDLE 中,按照以下步骤操作:

 1. cd C:\Users\[Your Username]\AppData\Roaming\Python\Python38[On Me]\Scripts
 2. python -m pip install discord.py 

希望这会有所帮助。祝你有美好的一天!

*编辑:您的Python\Python38 可能会有所不同,我认为您可以通过按"WINDOWS + R" 并在框上写%appdata% 来检查它。之后向下滚动一点,您应该会找到Python

【讨论】:

  • 我仍然收到ERROR: Could not install packages due to an EnvironmentError: Could not find a suitable TLS CA certificate bundle, invalid path: path/to/ca-bundle.crt 错误。
  • 你把python放在PATH里了吗?如果你没有,那可能就是它不起作用的原因。观看此视频:youtu.be/Y2q_b4ugPWk.
猜你喜欢
  • 2019-02-27
  • 2019-03-27
  • 2019-01-08
  • 2021-08-09
  • 2023-04-03
  • 2020-08-06
  • 2020-09-03
  • 2019-06-07
  • 2020-05-16
相关资源
最近更新 更多