当前位置:网站首页>PIP command reports an error pip is configured with locations that requires tls/ssl problems
PIP command reports an error pip is configured with locations that requires tls/ssl problems
2022-07-05 12:19:00 【Xiaobo】
Problem description :pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Question why :openssl The version is too low or Python You need to add parameters when compiling and installing --with-openssl= Its catalogue
resolvent :
1. To opesnssl Official website /source/index.html Download source package , Compile and install to the specified directory
#1. Download source package
tar xf openssl-1.1.1l.tar.gz
cd openssl-1.1.1l/
#2. Compilation and installation
./config --prefix=/usr/local/openssl
make && make install
# 3. Back up the original configuration
mv /usr/bin/openssl /usr/bin/openssl.bak
mv /usr/include/openssl/ /usr/include/openssl.bak
# 4. New configuration
ln -s /usr/local/openssl/include/openssl /usr/include/openssl
ln -s /usr/local/openssl/lib/libssl.so.1.1 /usr/local/lib64/libssl.so
ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl
# 5. Modify system configuration
## write in openssl Search path for library files
echo "/usr/local/openssl/lib" >> /etc/ld.so.conf
## Make the revised /etc/ld.so.conf take effect
ldconfig -v
# 6. see openssl edition
openssl version
2. Recompile install python, add to --with-openssl=/usr/local/openssl Parameters
cd /opt/Python-3.10.0/
### Optional make clean && make distclean , Clear previously compiled executables and configuration files && Clear all generated files , At the same time configure Delete all generated files , Include Makefile
./configure --prefix=/usr/local/Python-3.10.0/ --with-openssl=/usr/local/openssl/
make && make install边栏推荐
- Which domestic cloud management platform manufacturer is good in 2022? Why?
- 1. Laravel creation project of PHP
- What is digital existence? Digital transformation starts with digital existence
- Riddle 1
- Check the debug port information in rancher and do idea remote JVM debug
- Matlab struct function (structure array)
- PXE启动配置及原理
- 跨平台(32bit和64bit)的 printf 格式符 %lld 输出64位的解决方式
- Principle of redis cluster mode
- Course design of compilation principle --- formula calculator (a simple calculator with interface developed based on QT)
猜你喜欢

Hiengine: comparable to the local cloud native memory database engine
Why do you always fail in automated tests?

Master the new features of fluent 2.10

The evolution of mobile cross platform technology

What is digital existence? Digital transformation starts with digital existence

mysql拆分字符串做条件查询

Course design of compilation principle --- formula calculator (a simple calculator with interface developed based on QT)

Select drop-down box realizes three-level linkage of provinces and cities in China

Mmclassification training custom data

HiEngine:可媲美本地的云原生内存数据库引擎
随机推荐
Master the new features of fluent 2.10
Principle and performance analysis of lepton lossless compression
Redirection of redis cluster
Interviewer: is acid fully guaranteed for redis transactions?
MySQL installation, Windows version
调查显示传统数据安全工具在60%情况下无法抵御勒索软件攻击
2022年国内云管平台厂商哪家好?为什么?
JS for循环 循环次数异常
Hash tag usage in redis cluster
Network five whip
abap查表程序
Understanding the architecture type of mobile CPU
Halcon 模板匹配实战代码(一)
查看rancher中debug端口信息,并做IDEA Remote Jvm Debug
Codeforces Round #804 (Div. 2)
Video networkstate property
Matlab imoverlay function (burn binary mask into two-dimensional image)
Linux Installation and deployment lamp (apache+mysql+php)
Matlab label2idx function (convert the label matrix into a cell array with linear index)
MySQL index (1)