Issue
I have followed instructions as given on How to use pyenv to run multiple versions of Python on a Mac, and have followed each step.
$ brew install pyenv
pyenv install 3.9.9
- Export path to zshrc via
echo 'PATH=$(pyenv root)/shims:$PATH' >> ~/.zshrc
pyenv global 3.9.9
After this, when I run python -V
, I expect to see Python 3.9.9
as the output. Instead, I see Python 2.7.18
.
Am I missing something here?
Solution
After #4 in your list, did you source ~/.zshrc
Answered By - Sean Hanford Answer Checked By - Senaida (WPSolving Volunteer)