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
查阅资料发现,在./configure过程中,如果没有加上–with-ssl参数时,默认安装的软件涉及到ssl的功能不可用,刚好pip3过程需要ssl模块,而由于没有指定,所以该功能不可用。
解决办法是重新对python3.6进行编译安装,用一下过程来实现编译安装:
cd Python-3.6.5
./configure --with-ssl
make
sudo make instal
原创
2021-11-08 11:50:40 ·
1902 阅读 ·
0 评论