/usr/bin/pip: No such file or directory

pip已經安裝,但是/usr/bin/pip: No such file or directory

解決方法

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.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章