pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available 解决方法

问题

今天在安装 Pygame 的时候,发现照着之前自己写的教程出现了问题。

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

解决方法

其实还是 Anaconda 环境变量的问题。

Win + R ,输入:SystemPropertiesAdvanced.exe ,回车。

然后点击 环境变量

进入 系统变量 ,找到 PATH ,点击编辑:

只需把这三个加上就行。

C:\ProgramData\Anaconda3
C:\ProgramData\Anaconda3\Scripts
C:\ProgramData\Anaconda3\Library\bin

致谢

windows pip is configured with locations that require TLS/SSL, however the ssl module in Python