pip broken after upgrading

前端 未结 2 2049
我在风中等你
我在风中等你 2021-02-05 02:41

I did pip install -U easyinstall, and then pip install -U pip to upgrade my pip. However, I get this error now when trying to use pip:

root@d8fb98fc3a66:/# which         


        
2条回答
  •  生来不讨喜
    2021-02-05 03:18

    One reason can be remembed locations.

    You can clear the cached locations by issuing following command:

    hash -r
    

    SIDENOTE: Instead of which, using type command, you can see the hashed location:

    $ type pip
    pip is /usr/local/bin/pip
    $ pip -V
    pip 1.5.6 from /usr/local/lib/python2.7/dist-packages (python 2.7)
    $ type pip
    pip is hashed (/usr/local/bin/pip)
    

提交回复
热议问题