Solve the problem of python compiling and installing ssl

Python compilation and installation require ssl module to use pip, and ssl needs to support x509,
If the openssl version is too low, the corresponding ssl module cannot be installed. If you support ssl, you can see during configure:

The following does not require administrator rights.
Solution: compile and install the latest version of openssl:

1. Install openssl

Download link: https://www.openssl.org/source/
Enter the folder after decompression:

. /config --prefix=/openssl/install/path
make
make install

/openssl/install/path is the installation directory, which is needed below.
At the same time, add bin to the PATH of the environment variable and add lib to the link library.

openssl version

2 . Install python

Modify the python setup file and enter the python file directory:

cd Modules
vim Setup

Modify the corresponding file to the following:

Note that you must modify the content behind SSL= to your own openssl installation directory

In the python file directory:

. /configure --prefix=/python/install/path --with-openssl=/openssl/install/path
make -j8
make install

You can see after ./configure:

Then it can be installed successfully and all modules that require ssl can be used.

Recommended Posts

Solve the problem of python compiling and installing ssl
Solve the problem of installing VMwareTools on Ubuntu 18.04
Solve the problem of python running startup error
Solve the problem of installing Theano on Ubuntu19
Solve the problem of convex hull based on python
Completely solve the problem of slow downloading of Python packages
Solve the conflict of multiple versions of python
The difference between the syntax of java and python
The meaning and usage of lists in python
A brief summary of the difference between Python2 and Python3
Detailed explanation of the remaining problem based on python (%)
Consolidate the foundation of Python (4)
Consolidate the foundation of Python(7)
Consolidate the foundation of Python(6)
Consolidate the foundation of Python(5)
Consolidate the foundation of Python (3)
Magic methods and uses of Python
Python handles the 4 wheels of Chinese
Python simulation of the landlord deal
How to solve the problem of not being able to access the Internet after installing centos7 on VmWare
What is the use of Python
Mongodb and python interaction of python crawler
The premise of Python string pooling
Secrets of the new features of Python 3.8
The father of Python joins Microsoft
The operation of python access hdfs
The usage of tuples in python
End the method of running python
Understanding the meaning of rb in python
Can Python implement the structure of the stack?
Learn the basics of python interactive mode
What are the required parameters of python
The usage of Ajax in Python3 crawler
Python solves the Tower of Hanoi game
Python implementation of intersection and IOU tutorial
What is the scope of python variables
Python implements the sum of fractional sequences
Two days of learning the basics of Python
What is the id function of python
Where is the pip path of python3
Method of installing django module in python
Centos 8.1.1911 solves the problem of yum reinstallation
The essence of Python language: Itertools library
Example of python calculating derivative and plotting
What are the advantages of python language
The specific method of python instantiation object
python3 realizes the function of mask drawing
What is the prospect of python development
What is the function body of python
[Centos8] The bumpy process of installing docker
The specific method of python import library
What is the function of adb in python
Detailed explanation of the principle of Python super() method
Python realizes horizontal and vertical splicing of pictures
Solve the problem that Centos8 cannot install docker
Python realizes the development of student management system
The basic configuration and interface beautification of Ubuntu
Use the command to solve the Ubuntu projector problem:
Python implements the shuffling of the cards in Doudizhu
Can the value of the python dictionary be modified?
Python implements the source code of the snake game