Install pip manually

After the success of apt-get instal pip, the upgrade was carried out according to the prompt of pip. After the upgrade, there was a problem with pip

 

 

 

In order to solve the above problems, manually install pip and execute the following commands in sequence

1
2
3
4
5
[root@minion01 Python-2.7.10] # cd ..
[root@minion01 tools] # wget https://bootstrap.pypa.io/get-pip.py
[root@minion01 tools] # python get-pip.py
[root@minion01 tools] # mv /usr/bin/pip  /usr/bin/pip_bak
[root@minion01 tools] # ln -s /usr/local/bin/pip2.7 /usr/bin/pip

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324883347&siteId=291194637