新買的虛擬機沒有pip,我們來安裝一下。
只需要執行一下語句即可:(第二步和第三步有錯也不用管,不影響)
1、安裝epel-release拓展源:yum -y install epel-release
2、清空cache:yum clear all
3、執行makecache:yum makecache
4、安裝pip:yum -y install python-pip
5、升級pip:pip install --upgrade pip
安裝成功:
新買的虛擬機沒有pip,我們來安裝一下。
只需要執行一下語句即可:(第二步和第三步有錯也不用管,不影響)
1、安裝epel-release拓展源:yum -y install epel-release
2、清空cache:yum clear all
3、執行makecache:yum makecache
4、安裝pip:yum -y install python-pip
5、升級pip:pip install --upgrade pip
安裝成功: