Deactivate pyenv in current shell
问题 My .bashrc has this: enable-pyenv () { # Load pyenv automatically by adding # the following to your profile: export PATH="$HOME/.pyenv/bin:$PATH" eval "$(pyenv init -)" eval "$(pyenv virtualenv-init -)" } enable-pyenv Which enables pyenv. In some situations, I want to (temporarily) disable pyenv. How can I do this? 回答1: If you want to use the python version from your system: pyenv local system https://github.com/pyenv/pyenv/blob/master/COMMANDS.md#pyenv-global https://github.com/pyenv/pyenv