当前位置:   article > 正文

【已解决】:pip is configured with locations that require TLS/SSL_warning: pip is configured with locations that req

warning: pip is configured with locations that require tls/ssl, however the

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

  • 1
  • 2
  • 3

然后输入内容:

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

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

再次使用pip安装即可。

参考:https://blog.csdn.net/witton/article/details/109352577?spm=1001.2101.3001.6650.15&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-15-109352577-blog-128715977.235%5Ev43%5Epc_blog_bottom_relevance_base2&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-15-109352577-blog-128715977.235%5Ev43%5Epc_blog_bottom_relevance_base2

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

闽ICP备14008679号