I am working on OS X 11.4 (Big Sur), and I have installed pyenv
and pyenv-virtualenv
.
I have also installed Python 3.9.6 via pyenv.
However, although pyenv thinks I am using Python 3.9.6...
% pyenv versions
system
* 3.9.6 (set by /Users/me/.pyenv/version)
...python
is still defaulting to 2.7.16:
% python -V
Python 2.7.16
Some more information:
% pyenv version
3.9.6 (set by /Users/me/.pyenv/version)
% which python
/usr/bin/python
If I do python3 --version
then I do see 3.9.6. But I'd prefer it if python
defaulted to this too.
What am I doing wrong? Should I just alias python
to python3
?