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

a_flyying_pig 2024-07-20 15:05:02 阅读 94

Windows版

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

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

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

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

<code>[install]

trusted-host = mirrors.aliyun.com

        重新pip即可成功。



声明

本文内容仅代表作者观点,或转载于其他网站,本站不以此文作为商业用途
如有涉及侵权,请联系本站进行删除
转载本站原创文章,请注明来源及作者。