pip is configured with locations that require TLS/SSL, however the ssl module in Python is not avail

sudo apt-get install openssl
sudo apt-get install libssl-dev

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not avail_第1张图片
查阅资料发现,在./configure过程中,如果没有加上–with-ssl参数时,默认安装的软件涉及到ssl的功能不可用,刚好pip3过程需要ssl模块,而由于没有指定,所以该功能不可用。
解决办法是重新对python3.6进行编译安装,用一下过程来实现编译安装:

cd Python-3.6.5
./configure --with-ssl
make
sudo make install

再次安装问题解决

你可能感兴趣的:(pip,ssl,python,网络协议)