yum install python3.6、pip in centos

2023-10-22 15:33:50 浏览数 (1)

安装 yum 源

代码语言:javascript复制
# 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

代码语言:javascript复制
yum install python36u -y
ln -s /usr/bin/python3.6 /usr/bin/python3
python3 -V

安装 pip 和 setuptools

代码语言:javascript复制
curl -O https://bootstrap.pypa.io/get-pip.py
sudo /usr/bin/python3 get-pip.py
pip -V

0 人点赞