这是因为缓存的问题造成的,解决方案:
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.
https://blog.csdn.net/jiangjiang_jian/article/details/103770007
成功解决了自己的问题