pip升級之後出現:/usr/bin/pip: No such file or directory

這是因爲緩存的問題造成的,解決方案:

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

2.pip 
-bash: /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.

 

發佈了111 篇原創文章 · 獲贊 234 · 訪問量 69萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章