当前位置:网站首页>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边栏推荐
- How does MySQL execute an SQL statement?
- 【ijkplayer】when i compile file “compile-ffmpeg.sh“ ,it show error “No such file or directory“.
- Seven ways to achieve vertical centering
- PXE启动配置及原理
- Principle of redis cluster mode
- Redis cluster (master-slave) brain crack and solution
- Video networkState 属性
- 一类恒等式的应用(范德蒙德卷积与超几何函数)
- mmclassification 训练自定义数据
- 语义分割实验:Unet网络/MSRC2数据集
猜你喜欢

ABAP table lookup program

Learn memory management of JVM 01 - first memory
[email protected] (using password"/>Solve the error 1045 of Navicat creating local connection -access denied for user [email protected] (using password

Master the new features of fluent 2.10

Take you hand in hand to develop a service monitoring component

Matlab superpixels function (2D super pixel over segmentation of image)

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

MySQL index (1)

Redirection of redis cluster

Network five whip
随机推荐
PXE startup configuration and principle
Why do you always fail in automated tests?
Four operations and derivative operations of MATLAB polynomials
MySQL constraints
Handwriting blocking queue: condition + lock
Hiengine: comparable to the local cloud native memory database engine
Why learn harmonyos and how to get started quickly?
报错ModuleNotFoundError: No module named ‘cv2.aruco‘
Learn the memory management of JVM 02 - memory allocation of JVM
一款新型的智能家居WiFi选择方案——SimpleWiFi在无线智能家居中的应用
Design of music box based on assembly language
互联网公司实习岗位选择与简易版职业发展规划
Understanding the architecture type of mobile CPU
GPS data format conversion [easy to understand]
Redis cluster (master-slave) brain crack and solution
Linux安装部署LAMP(Apache+MySQL+PHP)
GPS数据格式转换[通俗易懂]
MVVM framework part I lifecycle
Get data from the database when using JMeter for database assertion
SENT协议译码的深入探讨