在linux中编译安装python3后,在使用pip命令时提示pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available,原因是在./configure过程中,如果没有加上–with-ssl参数,导致默认安装的软件涉及到ssl的功能不可用
需要安装openssl-devel后
yum install openssl-devel
重新执行
./configure -with-ssl prefix=/usr/local/python3 #prefix指定的路径改为自己安装的路径即可
make
make install
三个命令即可
本文详细介绍了在Linux环境下,由于未正确配置SSL模块而导致的pip命令错误:pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available。提供了具体的解决方案,包括安装openssl-devel并重新配置Python3的步骤。
16万+

被折叠的 条评论
为什么被折叠?



