0
点赞
收藏
分享

微信扫一扫

Caused by SSLErr“Can‘t connect to HTTPS URL because the SSL module is not available.“

Python安装了3.10.4,使用pip安装第三方库报错!

解决办法:

1、问题定位这个是安装Python3.10.4  ​​openssl​​ 模块问题。

2、方法:

​重新编译 python3.10

切换到 python3.10 解压包目录

①、已经编译过的可以先 make clean 清理一下

[root@blog Python-3.10.4]# ./configure --prefix=/usr/local/python3 --with-openssl=/usr/local/openssl -with-openssl-rpath=auto标粗的这个一定别漏了,血泪教训

②、编译安装:make -j && make install

③、安装第三库测试:

[root@blog tutorial5]# pip install -r requirements.txt

Caused by SSLErr“Can‘t connect to HTTPS URL because the SSL module is not available.“_问题定位


举报

相关推荐

0 条评论