pip is configured with locations that require TLS/SSL

使用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

你可能感兴趣的:(python基础,python,ssl,windows)