How to uninstall pip on OSX?

后端 未结 5 1741
梦毁少年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:30

    Aditionally to the answer from @srk, you should uninstall package setuptools:

    python -m pip uninstall pip setuptools
    

    If you want to uninstall all other packages first, this answer has some hints: https://stackoverflow.com/a/11250821/265954

    Note: before you use the commands from that answer, please carefully read the comments about side effects and how to avoid uninstalling pip and setuptools too early. E.g. pip freeze | grep -v "^-e" | grep -v "^(setuptools|pip)" | xargs pip uninstall -y

提交回复
热议问题