美文网首页
解决:pip is configured with locati

解决:pip is configured with locati

作者: 承诺一时的华丽 | 来源:发表于2023-05-30 11:33 被阅读0次

在使用pip进行软件包安装的时候出现问题:

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

解决:

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

然后输入内容:

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

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

再次使用pip安装即可。

相关文章

网友评论

      本文标题:解决:pip is configured with locati

      本文链接:https://www.haomeiwen.com/subject/fqasedtx.html