1

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?

Shale
  • 338
  • 1
  • 2
  • 10

1 Answers1

0

I solved it with Cannot switch Python with pyenv

I added
export PATH="$PYENV_ROOT/shims:$PATH" in my ~/.profile .

Really Thanks

Shale
  • 338
  • 1
  • 2
  • 10