1、安装epel-release


[root@localhost ~]# yum -y install epel-release

2、安装python-pip


[root@localhost ~]# yum -y install python-pip

3、升级pip

[root@localhost ~]# pip install --upgrade pip

4、检查pip版本

[root@localhost ~]# pip --version

 5、修改pip源

[root@localhost ~]# cd ~  #回到家目录
[root@localhost ~]# mkdir .pip  #创建.pip目录
[root@localhost ~]# cd .pip
[root@localhost .pip]# touch pip.conf  #创建pip.conf配置文件
[root@localhost .pip]# vi pip.conf
#在配置文件中增加如下内容
[global]
index-url = http://pypi.douban.com/simple
[install]
trusted-host = pypi.douban.com
#配置文件保存

 

posted on 2019-08-09 09:00  RH★JEANS  阅读(11253)  评论(0编辑  收藏  举报