I'm using Ubuntu 16.4
I installed dependencies for pyvenv and pyenv ,
by
su sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev git python-pip
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
in ~/.bashrc
and I ran
source ~/.bashrc
run the
pyenv install 3.7.2
pyenv global 3.7.2
and pyenv versions shows
system
* 3.7.2 (set by PYENV_VERSION environment variable)
but python -V shows is just same as my system python
Python 3.5.2
What I did wrong?