pip is configured ... that require TLS/SSL

2026-02-12 08:47:41

1、centos7.3中使用pip3安装软件报错:pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

如下图,当我安装Django时候,报错

pip is configured ... that require TLS/SSL

2、解決办法,首先安装 openssl-devel

sudo yum install openssl-devel

安装成功后,使用pip3 继续安装django

pip3 install django

如果还是报错步骤1中的情况,那么进入步骤3

pip is configured ... that require TLS/SSL

3、那么你需要 进入python 安装包 目录下重新编译并且安装python

cd Python-3.6.3

进入目录下,依次执行以下3条命令

./configure --with-ssl 

make

sudo make install

执行完成后 pip3 就可以安装軟件了,如下图2我重新安装Django,安装成功

pip is configured ... that require TLS/SSL

pip is configured ... that require TLS/SSL

相关推荐
  • 阅读量:158
  • 阅读量:52
  • 阅读量:24
  • 阅读量:44
  • 阅读量:68
  • 猜你喜欢