1. 程式人生 > >pip問題解決方案

pip問題解決方案

錯誤資訊:usr/bin/pip: No such file or directory

解決辦法(一共四步,按照下面的步驟來從1到4,最後你會發現問題都解決了):

1.which pip 
/usr/local/bin/pip

2.pip 
-su: /usr/bin/pip: No such file or directory

3.type pip 
pip is hashed (/usr/bin/pip) 
So pip is definintely in /usr/local/bin/pip but it is been cached as in /usr/bin/pip, thanks to the Stackoverflow question, the solution is very simple:

4.hash -r 
When the cache is clear, pip is working again.