当前位置:网站首页>使用pip使用报错:pip is configured with locations that require TLS/SSL
使用pip使用报错:pip is configured with locations that require TLS/SSL
2022-07-22 18:09:00 【黄思博呀】
编译安装完python3.10后,pip不能使用!
出现报错:
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not ...
网上文章说在configure这一步上加上--with openssl:
./configure --prefix=/usr/local/python3 --with-openssl=/usr/bin/openssl但是问题没有解决,用yum进行更新openssl也不行,再编译python3.10也还是报错。
问题解决:
下载openssl包,重新安装openssl:
#下载openssl包:
wget https://github.com/openssl/openssl/archive/OpenSSL_1_1_1d.tar.gz
#解压:
tar -xvf OpenSSL_1_1_1d.tar.gz -C .
#编译安装:
cd OpenSSL_1_1_1d
.confiugre --prefix=/usr/local/openssl && make && make install
在安装过程中,时间略长。
打开/usr/local/bin/openssl再次报错:
openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
问题解决:
查看在安装的openssl的lib文件夹里有无有如下的库文件:libcrypto.so.11和libssl.so.1.1

为其建立软连接:
再次打开/usr/local/openssl/bin/openssl ,成功进入!

比较旧版和新版openssl的版本号:

对旧版openssl进行保存或删除
重新安装编译python3.10
#下载源码包:
wget https://www.python.org/ftp/python/3.10.4/Python-3.10.4.tgz
#解压:
tar -xvf P*
#编译安装:
cd P*4
configure --prefix=/usr/local/python3.10 --with-openssl=/usr/local/openssl
make && make install更新pip3.10

删除源码包,也可以保存
#删除openssl源码包:
rm -Rf O*
rm -Rf o*
#删除Python源码包:
rm -Rf P*边栏推荐
猜你喜欢

OpenGL create a new window

Landing plan for automatic adaptation

Operation - 6 test points

Millisecond upload batch attachments

LINK : fatal error LNK1104: 无法打开文件“opencv_world340.lib”

How OpenGL handles errors

关于idea中 的module删除之后重新创建出现的问题:

关于count=count++

anaconda 安装pytorch

Building wheel for hdbscan (pyproject.toml) did not run successfully.
随机推荐
JVM初探
课后练习03---126字母邮箱注册功能
自动测试和手动测试
测试点,第一天总结
Automated testing - technology sharing
软件测试~学习/进阶路线
电商网站开发建设功能分析
C language structure and linked list -- a brief answer to difficulties
Espressif 8266 at+mqtt connect AWS IOT
数字验证码识别完成自动化登录
Linked list 2 linked list OJ problem solution and topic summary
Day03 --- test case expansion
软件bug
关于自动化适配的落地方案
一个简易的手机端todo
接口文档案例
amber教程A17学习----概念篇
学习amber软件md的输入文件参数
amber教程4.6:对体系氢键分析
train-clean-100 数据集