Here's how to uninstall pyenv
Let's uninstall it quickly!
#pyenv-If you have virtualenv installed, remove it first
brew uninstall pyenv-virtualenv
#Uninstall pyenv
brew uninstall pyenv
#.Remove pyenv
rm -rf $(pyenv root)
Clean up ~ / .zshrc
or ~ / .bash_profile
.
Open it with vim according to your environment.
vim ~/.zshrc
#vim ~/.bash_profile
In this
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
(※1)Please delete! (* 1: This is an option, so it may not be available.)
In addition, if there is a description related to pyenv in order to eliminate the warning of brew doctor
, you can delete it as well.
afterwards
source ~/.zshrc
#source ~/.bash_profile
Update with or restart your shell and you're done!
Recommended Posts