问题:Centos7 安装python3.10,使用pip3安装依赖报错:
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/protobuf/
解决办法:
centos7默认的openssl低于python3.10依赖版本,安装openssl11解决依赖版本问题。
yum install -y epel-release.noarch
yum install -y openssl11 openssl11-devel
sed -i 's/PKG_CONFIG openssl /PKG_CONFIG openssl11 /g' configure
#重新编译python
cd /opt/Python-3.10.16
./configure --prefix=/usr/local/python3 --with-ssl
make && make install
评论列表,共 0 条评论
暂无评论