- 安装python3
大多数云平台没有安装zlib和openssl的devel包,需要提前安装
下载python源码
cd /home/cheat
wget https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tar.gz
tar xzvf Python-3.6.6.tar.gz
cd Python-3.6.6
mkdir build
cd build
../configure –with-ssl –prefix=/home/cheat/python3
make
make install
# 创建软连接
sudo ln –sf /home/cheat/python3/bin/pip3 /usr/bin/pip3
sudo ln –sf /home/cheat/python3/bin/python3.6 /usr/bin/python3