欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

pip 安装包报错-bash: /home/ubuntu/.local/bin/pip: No such file or directory

程序员文章站 2022-02-06 11:35:00
...
    which pip

    /usr/local/bin/pip

 pip

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

    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 * question, the solution is very simple:
 

   hash -r

    When the cache is clear, pip is working again.

这样之后在进行操作,就可以使用pip了。

原文:原文链接
 

相关标签: ubuntu