使用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.co
或者修改配置檔案
# 檔案不存在就建立一個
$ vi ~/.pip/pip.conf
[global]
index-url = http://pypi.douban.com/simple/
trusted-host = pypi.douban.com
參考
Python程式設計:pip安裝第三方子產品