在windows下使用pip安装第三方库试,报SSLError,

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

 

解决办法:

 

先考虑更换为国内源

C:\Users\用户\xx\AppData\Roaming  这里的xx指代的是你电脑的登录的用户名

进入pip文件夹,创建pip.ini文件,内容如下

 

[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host = mirrors.aliyun.com

 

尝试过后,虽然源修改成功了,但是还是报一样的错,接下来需要安装一个文件

 

https://slproweb.com/products/Win32OpenSSL.html

 

windows下使用pip install出现SSLError的解决办法

 

点击EXE下载安装后,再次尝试,即可成功

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
  • 2022-02-23
  • 2021-11-29
  • 2022-12-23
  • 2021-11-12
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-03
  • 2022-01-08
  • 2022-03-07
  • 2022-12-23
  • 2021-08-11
相关资源
相似解决方案