当前位置:网站首页>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边栏推荐
- 报错ModuleNotFoundError: No module named ‘cv2.aruco‘
- Embedded software architecture design - message interaction
- Swift - enables textview to be highly adaptive
- MySQL stored procedure
- Learn the memory management of JVM 02 - memory allocation of JVM
- Hash tag usage in redis cluster
- Matlab boundarymask function (find the boundary of the divided area)
- The solution of outputting 64 bits from printf format%lld of cross platform (32bit and 64bit)
- 1 plug-in to handle advertisements in web pages
- POJ-2499 Binary Tree
猜你喜欢

Reinforcement learning - learning notes 3 | strategic learning

Sentinel sentinel mechanism of master automatic election in redis master-slave

Check the debug port information in rancher and do idea remote JVM debug

Use and install RkNN toolkit Lite2 on itop-3568 development board NPU

Tabbar configuration at the bottom of wechat applet

Principle of redis cluster mode

Linux Installation and deployment lamp (apache+mysql+php)

Simply solve the problem that the node in the redis cluster cannot read data (error) moved
调查显示传统数据安全工具在60%情况下无法抵御勒索软件攻击

Pytorch softmax regression
随机推荐
Halcon 模板匹配实战代码(一)
Sentinel sentinel mechanism of master automatic election in redis master-slave
手机 CPU 架构类型了解
How to clear floating?
MySQL installation, Windows version
Learn the memory management of JVM 03 - Method area and meta space of JVM
Reading notes of growth hacker
投资理财适合女生吗?女生可以买哪些理财产品?
Pytorch softmax regression
Simply solve the problem that the node in the redis cluster cannot read data (error) moved
SENT协议译码的深入探讨
Multi table operation - Auto Association query
一款新型的智能家居WiFi选择方案——SimpleWiFi在无线智能家居中的应用
Learn the memory management of JVM 02 - memory allocation of JVM
Swift - enables textview to be highly adaptive
PXE启动配置及原理
PXE startup configuration and principle
How does MySQL execute an SQL statement?
MySQL splits strings for conditional queries
[pytorch modifies the pre training model: there is little difference between the measured loading pre training model and the random initialization of the model]