linux下安装python3使用pip提示pip is configured with locations that require TLS/SSL, however the ssl module

在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下安装python3使用pip提示pip is configured with locations that require TLS/SSL, however the ssl module)