-
python linux离线安装.rar下载
资源介绍
python3.7.3 linux 离线安装
进入 rpm 包,运行 yum localinstall *.rpm -y
解压python tar -xvf $base_dir/software/Python-3.7.3.tgz
进入Python-3.7.3目录
./configure --prefix="/usr/local/Python-3.7.3"
make && make install
#删除原来的
rm -f /usr/bin/python
rm -f /usr/bin/pip
rm -f /usr/bin/virtualenv
#创建新连接
ln -s /usr/local/Python-3.7.3/bin/python3 /usr/bin/python
ln -s /usr/local/Python-3.7.3/bin/virtualenv /usr/bin/virtualenv
ln -s /usr/local/Python-3.7.3/bin/pip3 /usr/bin/pip