问题:
执行命令,能够正确得展示pip当前版本,证明pip安装没有问题,但是使用pip下载依赖时就会报错:
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
pip3 -V
问题原因:
很好理解,就是the ssl module 这个ssl模块版本太低了
python版本需要和openssl的版本需要相对匹配
在Python3.7之后的版本,依赖的openssl,必须要是1.1或者1.0.2之后的版本
解决办法:
一、先确认版本
openssl version
二、安装依赖
如果已有,这步可以忽略
yum install gcc libffi-devel zlib* openssl-devel