当前位置:网站首页>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
边栏推荐
猜你喜欢
The evolution of mobile cross platform technology
Why do you always fail in automated tests?
Mmclassification training custom data
About cache exceptions: solutions for cache avalanche, breakdown, and penetration
Intern position selection and simplified career development planning in Internet companies
[untitled]
Troubleshooting of high memory usage of redis in a production environment
What is digital existence? Digital transformation starts with digital existence
Learn the memory management of JVM 02 - memory allocation of JVM
July Huaqing learning-1
随机推荐
Pytorch softmax regression
MySQL multi table operation
MySQL index - extended data
想问问,如何选择券商?在线开户是很安全么?
Error modulenotfounderror: no module named 'cv2 aruco‘
How does MySQL execute an SQL statement?
Conversion du format de données GPS [facile à comprendre]
How to recover the information server and how to recover the server data [easy to understand]
Simply solve the problem that the node in the redis cluster cannot read data (error) moved
Interviewer: is acid fully guaranteed for redis transactions?
JS for循环 循环次数异常
Use and install RkNN toolkit Lite2 on itop-3568 development board NPU
abap查表程序
Seven ways to achieve vertical centering
7月华清学习-1
The most comprehensive new database in the whole network, multidimensional table platform inventory note, flowus, airtable, seatable, Vig table Vika, flying Book Multidimensional table, heipayun, Zhix
Video networkState 属性
Learn JVM garbage collection 02 - a brief introduction to the reference and recycling method area
PXE startup configuration and principle
Is investment and finance suitable for girls? What financial products can girls buy?