pip is configured with locations that require TLS/SSL

使用pip安装报错

pip is configured with locations that require TLS/SSL

方式一:

安装 openssl-devel 重新编译Python

方式二:

临时使用http源,如果赶时间,可以快速解决问题

pip install supervisor -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

或者修改配置文件

# 文件不存在就新建一个
$ vi ~/.pip/pip.conf
[global]
index-url = http://pypi.douban.com/simple/
trusted-host = pypi.douban.com

参考
Python编程:pip安装第三方模块

发布了1488 篇原创文章 · 获赞 454 · 访问量 158万+

猜你喜欢

转载自blog.csdn.net/mouday/article/details/105573797