How to cleanly remove pip that is installed by using easy_install?

前端 未结 2 1656
清歌不尽
清歌不尽 2021-02-07 22:48

If I used sudo easy_install pip on my OS X Lion 10.7.4, how do I cleanly remove it? After the installation, I also did pip install --upgrade setuptools

相关标签:
2条回答
  • 2021-02-07 23:22

    From this link:

    easy_install -mxN <PackageName>
    

    That means, execute:

    easy_install -mxN pip
    

    Then, you can manually remove the .egg files or directories, which should be somewhere in .../Python/2.7/site-packages/[PACKAGE].egg.

    But I didn't try that. I even don't use the Mac :)

    You can see also similar question: How do I remove packages installed with Python's easy_install?

    0 讨论(0)
  • 2021-02-07 23:30

    Use pip to uninstall pip:

    sudo pip uninstall pip
    
    0 讨论(0)
提交回复
热议问题