how to uninstall pyenv(installed by homebrew) on Mac

不问归期 提交于 2020-03-02 04:54:28

问题


I used to install pyenv by homebrew to manage versions of python, but now, I want to use anaconda.But I don't know how to uninstall pyenv.Please tell me.


回答1:


  1. To completely uninstall pyenv, perform step (1) and then remove its root directory. This will delete all Python versions that were installed under $(pyenv root)/versions/ directory:

    rm -rf $(pyenv root)
    
  2. If you’ve installed pyenv using a package manager, as a final step perform the pyenv package removal. For instance, for Homebrew:

    brew uninstall pyenv
    



回答2:


Try removing it using the following command:

brew remove pyenv




回答3:


None work for me (under brew) under Mac Cataline.

They have a warning about file missing under .pyenv.

(After I removed the bash_profile lines and also rm -rf ~/.pyenv,

I just install Mac OS version of python under python.org and seems ok.

Seems get my IDLE work and ...



来源:https://stackoverflow.com/questions/51797189/how-to-uninstall-pyenvinstalled-by-homebrew-on-mac

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!