标签:tar.gz config efi prefix 需要 ftp tps eve mkdir
大多数云平台没有安装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
标签:tar.gz config efi prefix 需要 ftp tps eve mkdir
原文地址:https://www.cnblogs.com/callyblog/p/9444507.html