当前位置:   article > 正文

pip is configured with locations that require TLS/SSL_pip is configure with location

pip is configure with location

使用pip安装东西的时候被告知:
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
查了一下,在stack overflow上找到了解决办法,原贴链接
简单说,windows下就是安装最新的openSSL(下载地址: Win32/Win64 OpenSSL Installer for Windows - Shining Light Productions ,下载列表里的第一个就可以,下载完按照默认地址安装)

linux解决:

mkdir -p ~/.pip
vim ~/.pip/pip.conf

然后输入内容:

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

[install]
trusted-host = mirrors.aliyun.com



原文链接:https://blog.csdn.net/witton/article/details/109352577

window解决:

同上,c盘,用户下面,建一个pip文件夹,pip.ini,内容:

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

[install]
trusted-host = mirrors.aliyun.com

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/922832
推荐阅读
  

闽ICP备14008679号