"pyenv versions" and "python -V" showing different versions

Viewed 787

I need to use python 3.8. I installed it using the following command:

pyenv install 3.8.1

Now the output of pyenv versions is:

  system
* 3.8.1 (set by /Users/username/.pyenv/version)

Output of python -V:

Python 2.7.16

Why are they different?

1 Answers

Try eval "$(pyenv init --path)". That worked for me.

Related