ubuntu 18.04 x64bit
sudo apt-get build-dep python-defaults
git clone https://github.com/openssl/openssl.git
cd openssl
./config
make -j16
sudo make install
Modules/Setup 改一下这几行
# Socket module helper for SSL support; you must comment out the other
# socket line above, and possibly edit the SSL variable:
SSL=/usr/local/ssl
_ssl _ssl.c \
-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
-L$(SSL)/lib -lssl -lcrypto
# The crypt module is now disabled by default because it breaks builds
# on many systems (where -lcrypt is needed), e.g. Linux (I believe).
#
待续