yum install python3.6、pip in centos

pylogo.png

安装 yum 源

# Centos 6
yum install https://centos6.iuscommunity.org/ius-release.rpm -y
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo

# Centos 7
yum install https://centos7.iuscommunity.org/ius-release.rpm -y
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

yum 安装 python3.6

yum install python36u -y
ln -s /usr/bin/python3.6 /usr/bin/python3
python3 -V

安装 pip 和 setuptools

curl -O https://bootstrap.pypa.io/get-pip.py
sudo /usr/bin/python3 get-pip.py
pip -V
发表新评论