CentOS pip安装和升级1 min read

  • A+
所属分类:Linux运维

  

1. pip yum安装方发

yum -y install epel-release   # 安装epel扩展源
yum -y install python-pip     # 安装pip
yum clean all                 # 清除缓存

   

2. 编译安装:

# 下载
wget https://www.linuxgogo.com/repodata/Source_code/CentOS_7/pip/pip-9.0.3.tar.gz
# 解压
tar xf pip-9.0.3.tar.gz     
# 进入目录
cd pip-9.0.3/
# 安装
python setup.py install

  

3. pip升级

pip install --upgrade pip

  

参考博文:http://blog.vimiix.com/2017/08/27/Linux-pip-setup-and-solve-problems.html

  

  

zhaoyulin

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: