如何在 Mac 上卸载 pyenv(由自制软件安装)
how to uninstall pyenv(installed by homebrew) on Mac
我以前是用homebrew安装pyenv来管理python的版本,但是现在,我想用anaconda.But不知道怎么卸载pyenv.Please告诉我。
尝试使用以下命令将其删除:
brew remove pyenv
Uninstalling pyenv
The simplicity of pyenv makes it easy to temporarily disable it, or
uninstall from the system.
To disable Pyenv managing your Python versions, simply remove the pyenv init
line from your shell startup configuration. This will remove Pyenv shims directory from PATH, and future invocations like python
will execute the system Python version, as before Pyenv.
pyenv
will still be accessible on the command line, but your
Python apps won't be affected by version switching.
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)
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
None 在 Mac Cataline 下为我工作(在 brew 下)。
他们警告说 .pyenv
下缺少文件。
(在我删除了 bash_profile
行以及 rm -rf ~/.pyenv
、
我刚刚在 python.org
下安装了 Mac OS 版本的 python,看起来没问题。
似乎让我的空闲工作和...
我以前是用homebrew安装pyenv来管理python的版本,但是现在,我想用anaconda.But不知道怎么卸载pyenv.Please告诉我。
尝试使用以下命令将其删除:
brew remove pyenv
Uninstalling pyenv
The simplicity of pyenv makes it easy to temporarily disable it, or uninstall from the system.
To disable Pyenv managing your Python versions, simply remove the
pyenv init
line from your shell startup configuration. This will remove Pyenv shims directory from PATH, and future invocations likepython
will execute the system Python version, as before Pyenv.
pyenv
will still be accessible on the command line, but your Python apps won't be affected by version switching.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)
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
None 在 Mac Cataline 下为我工作(在 brew 下)。
他们警告说 .pyenv
下缺少文件。
(在我删除了 bash_profile
行以及 rm -rf ~/.pyenv
、
我刚刚在 python.org
下安装了 Mac OS 版本的 python,看起来没问题。
似乎让我的空闲工作和...