How to deactivate pyenv virtual environment

Viewed 3927

I'm using Ubuntu 20.04 . I installed pyenv following this blog.

How to deactivate an acitvated pyenv - virtualenv I tried following

deactivate

pyenv-virtualenv: deactivate must be sourced. Run 'source deactivate' instead of 'deactivate'

source deactivate

pyenv-virtualenv: deactivate 3.6.9/envs/word_embedding

In ~/.bashrc I appended following

export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
1 Answers

I had the same issue and pyenv deactivate was not working as well, instead use pyenv shell system.

Related