1. 程式人生 > >python出現"pip is configured with locations that require TLS/SSL, however the ssl....."錯誤解決辦法

python出現"pip is configured with locations that require TLS/SSL, however the ssl....."錯誤解決辦法

解決方法

新版的pip預設要使用SSL,可以通過設定修改,修改pip.conf檔案;還有一種辦法是openssl-dev,然後重新編譯安裝,只是在編譯的過程中加入 --enable-optimizations

具體如下:

sudo yum install openssl-devel

然後
./configure --enable-optimizations
make && make install