I'm currently using Mac Pro and downloaded python through brew install python
for the latest version (though it downloaded 3.9.12 instead of 3.10.x).
Also, while playing with the command lines, I also installed pyenv
(version 2.2.5).
The problem is, I am now unable to get the default python version.
The command python --version
and python -h
all gives me zsh: command not found: python
.
However, when I do python3 --version
, it gives me Python 3.9.12
.
Did I mess things up? Is there are way to go back to the state before I altered anything? (or at least recover my default python
version?)