一键安装Python3
# 使用阿里的yum源 curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo # 安装epel源 sudo yum -y install epel-release # 一键安装Python3 #yum install python3 -y # pip 国内源 mkdir ~/.pip echo "[global]" >>~/.pip/pip.conf echo "index-url = https://pypi.douban.com/simple/" >>~/.pip/pip.conf # 添加快捷方式连接 rm -f `which python` ln -s `which python3` /usr/bin/python rm -f `which pip` ln -s `which pip3` /usr/bin/pip
本文来自博客园,作者:前海渔文乐,转载请注明原文链接:https://www.cnblogs.com/yuleicoder/articles/13836016.html