快速实现CentOS7安装python-pip

1、首先检查linux有没有安装python-pip包,终端执行 pip -V

[root@ network-scripts]# pip -V
-bash: pip: command not found

2、没有python-pip包就执行命令 yum -y install epel-release

[root@ network-scripts]# yum -y install epel-release

3、执行成功之后,再次执行yum -y install python-pip

[root@ network-scripts]# yum install python-pip

4、对安装好的pip进行升级 pip install --upgrade pip

[root@ network-scripts]# pip install --upgrade pip

至此,pip安装好了,执行pip -V 再次检查pip环境。

[root@ network-scripts]# pip -V
pip 9.0.1 from /usr/lib/python2.7/site-packages (python 2.7)

猜你喜欢

转载自www.cnblogs.com/Javame/p/10918325.html