python3升級后pip提示TLS/SSL錯誤問題


 

python升級到3.7.5后,使用pip安裝時候報錯如下:

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Looking in indexes: https://pypi.douban.com/simple/
Collecting ncclient   

解決方案:

1、安裝zlib和openssl,詳見:https://www.cnblogs.com/luckjinyan/p/13124422.html

2、修改Python安裝包源文件:去掉選中白色部分前面的注釋

vi ./Modules/Setup.dist

 

 3、編譯安裝python:./configure prefix=/usr/local/python3

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM