A method of mounting pip CentOS7

1, the installation epel-release

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

2, mounting python-pip

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

3, upgrade pip

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

4, check the version pip

[root@localhost ~]# pip --version

 5, the source modification pip

[root @ localhost ~] # cd ~   # home directory 
[root @ localhost ~] # mkdir .pip # .pip create the directory 
[root @ localhost ~ ] # cd .pip 
[root @ localhost .pip] # Touch pip.conf # create pip.conf configuration file 
[root @ localhost the .pip] # vi pip.conf 
# increase in the configuration file the following 
[, Ltd. Free Join] 
index -url = HTTP: // pypi.douban.com/simple 
[ install ] 
Trusted - = Host pypi.douban.com 
# configuration file is saved

 

Guess you like

Origin www.cnblogs.com/rhjeans/p/11325044.html