快速實現CentOS7安裝python-pip

一、首先檢查linux有沒有安裝python-pip包,終端執行 pip -V

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

二、沒有python-pip包就執行命令 yum -y install epel-release

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

三、執行成功以後,再次執行yum -y install python-pip

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

四、對安裝好的pip進行升級 pip install --upgrade pip

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

至此,pip安裝好了,執行pip -V 再次檢查pip環境。python

[root@ network-scripts]# pip -V
pip 9.0.1 from /usr/lib/python2.7/site-packages (python 2.7)
相關文章
相關標籤/搜索