I downloaded Python 3.9.7 universal2 installer and installed Python on my M1-chip MacBook. Note that this was the first Python installation on this machine except for Apple-provided Python 2.7.16.
Then after running python3 --version
line in the Terminal I've got this output xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
and a pop-up window was opened suggesting installing necessary software. I installed it.
After that I ran python3 --version
line again and got this output: Python 3.8.2
. The expected output is Python 3.9.7
.
What happened? Did I do anything wrong? How to fix it?