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

前端 未结 6 890
被撕碎了的回忆
被撕碎了的回忆 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:38

    I had the same problem as @dartdog and thanks to @Martin Mohan and @warvariuc I was able to fully uninstall pip

    Unfortunately using the command

    apt-get install python-pip 
    

    Was installing an old version of pip so after doing

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

    To install the latest pip version I got the get-pip.py file from https://bootstrap.pypa.io/get-pip.py

    And once in the file directory from the command line executed the command python get-pip.py hope it helps someone

    Also some of the commands need sudo good luck!!

提交回复
热议问题