pip已经安装,但是/usr/bin/pip: No such file or directory
cvml 2018-07-18 11:38:04 24435 收藏 16
分类专栏: linux
版权
解决方法
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.
pip在usr/local/bin/pip
如果机器上已经有之前的pip,要先卸载
sudo apt-get remove python-pip
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
hash -r
————————————————
版权声明:本文为CSDN博主「cvml」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_15505637/article/details/81094162