cd /srv
wget https://github.com/openssl/openssl/archive/OpenSSL_1_0_2u.tar.gz
tar -zxvf OpenSSL_1_0_2u.tar.gz
cd OpenSSL_1_0_2u
./config -fPIC shared
make
make install
cd ../
echo "/usr/local/ssl/lib" > /etc/ld.so.conf.d/openssl_102u.conf
ldconfig
wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz
tar -xvJf Python-3.7.0.tar.xz
cd Python-3.7.0
./configure --with-openssl=/srv/OpenSSL_1_0_2u LDFLAGS=-L/srv/openssl-OpenSSL_1_0_2u
make
make install
ln -s /usr/local/bin/pip3.7 /usr/bin/pip3
ln -s /usr/local/bin/python3 /usr/bin/python3
mkdir ~/.pip/
vi ~/.pip/pip.conf
[global]
timeout = 6000
index-url = https://pypi.tuna.tsinghua.edu.cn/simple/
trusted-host = pypi.tuna.tsinghua.edu.cn