一米阳光长工
|
最近论坛上好多老大放出爬虫, 现在分享一个在CentOS 7 上用yum安装Python3.6和pip3的方法.
因为CentOS 7上默认的Python版本是2.7, 所以我们可以通过添加其他源方式再安装Python3.6.
#安装EPEL和IUS软件源
- yum install epel-release
- yum install https://centos7.iuscommunity.org/ius-release.rpm
复制代码
安装Python3.6
创建python3连接符
- ln -s /bin/python3.6 /bin/python3
复制代码
安装pip3
- yum install python36u-pip
复制代码 创建pip3链接符
- ln -s /bin/pip3.6 /bin/pip3
复制代码 这样就完成了
转至 https://www.openos.org/post/162/
|
|