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

pip is configured with locations that require TLSSSL, however the ssl module in Python is not avail,第1张

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 install

再次安装问题解决

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5158851.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-18
下一篇 2022-11-18

发表评论

登录后才能评论

评论列表(0条)

保存