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