I screwed up the system version of Python Pip on Ubuntu 12.10

前端 未结 6 892
被撕碎了的回忆
被撕碎了的回忆 2020-12-07 10:08

I wanted to update pip on my main install of Python, specifically to get the list command. Which also includes the list- updates capability.

So I ran:



        
6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-07 10:37

    I had the same message on linux.

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

    but then checked which pip was being called.

    $ which pip
    /usr/local/bin/pip 
    

    On my debian wheezy machine I fixed it doing following...

    /usr/local/bin/pip uninstall pip  
    apt-get remove python-pip  
    apt-get install python-pip  
    

    ====================================
    This was due to mixup installing with apt-get and updating with pip install -U pip.

    These also installed libraries at 2 different places which caused problems for me.

    /usr/lib/python2.7/dist-packages  
    /usr/local/lib/python2.7/dist-packages
    

提交回复
热议问题