yum 安装 python36 及 pip

前端之家收集整理的这篇文章主要介绍了yum 安装 python36 及 pip前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
yum install epel-release -y

yum -y install sqlite  sqlite-devel

sudo yum -y install https://centos7.iuscommunity.org/ius-release.rpm

yum install python36  python36u-pip  -y
python3.6  -m  pip install --upgrade pip

mv   /usr/bin/python  /tmp/
ln -s /usr/bin/python3.6    /usr/bin/python

sed  -i    's/\#\!\/usr\/bin\/python/\#\!\/usr\/bin\/python2/'   /usr/bin/yum
sed  -i    's/\#\! \/usr\/bin\/python/\#\! \/usr\/bin\/python2/'   /usr/libexec/urlgrabber-ext-down

mkdir -p  /root/.pip/

cat >  /root/.pip/pip.conf   <<EOF
[global]
trusted-host=mirrors.aliyun.com
index-url=http://mirrors.aliyun.com/pypi/simple/
EOF

python -V
原文链接:https://www.f2er.com/bash/387941.html

猜你在找的Bash相关文章