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 -)"