pip已经安装,但是/usr/bin/pip: No such file or directory
解决方法1.which pip/usr/local/bin/pip2.pip-su: /usr/bin/pip: No such file or directory3.type pippip is hashed (/usr/bin/pip)So pip is definintely in /usr/local/bin/pip but it is been cached...
·
解决方法
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-pipwget https://bootstrap.pypa.io/get-pip.pypython get-pip.pyhash -r
更多推荐



所有评论(0)