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

Windows版

        出错提示表示当前python缺少SSL模块,pip默认安装源为https://pypi.org/simple/,连接是需要SSL库,写配置文件修改为阿里安装源。

pip config --global set global.index-url http://mirrors.aliyun.com/pypi/simple/

        观察到配置被写入以下文件:

        记事本打开pip.ini文件,在末行添加

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

        重新pip即可成功。

你可能感兴趣的:(pip,ssl,python)