本文介绍了如何在Mac上卸载pyenv(由homebrew安装)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我以前是通过自制软件安装pyenv来管理python版本的,但是现在我想使用anaconda.但是我不知道如何卸载pyenv,请告诉我.
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.
推荐答案
-
要完全卸载pyenv,请执行步骤(1),然后删除其根目录.这将删除$(pyenv root)/versions/目录下安装的所有Python版本:
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)
如果您已使用软件包管理器安装了pyenv,请最后执行pyenv软件包删除操作.例如,对于Homebrew:
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
这篇关于如何在Mac上卸载pyenv(由homebrew安装)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!