How to uninstall pip on OSX?

后端 未结 5 1755
梦毁少年i
梦毁少年i 2020-12-05 04:13

I ran the following commands:

easy_install pip
sudo pip install setuptools --no-use-wheel --upgrade

How do I reverse the two commands to ge

5条回答
  •  南笙
    南笙 (楼主)
    2020-12-05 04:54

    In my case I ran the following command and it worked (not that I was expecting it to):

    sudo pip uninstall pip
    

    Which resulted in:

    Uninstalling pip-6.1.1:
      /Library/Python/2.7/site-packages/pip-6.1.1.dist-info/DESCRIPTION.rst
      /Library/Python/2.7/site-packages/pip-6.1.1.dist-info/METADATA
      /Library/Python/2.7/site-packages/pip-6.1.1.dist-info/RECORD
      
      ...
    
      /usr/local/bin/pip
      /usr/local/bin/pip2
      /usr/local/bin/pip2.7
    Proceed (y/n)? y
      Successfully uninstalled pip-6.1.1
    

提交回复
热议问题