terminal still showing python version 3.5 even though 3.9 was installed

3.3k Views Asked by At

I downloaded and installed Python 3.9 using the Original Installer from python.org, and also tried it with Homebrew after that, which also installed 3.9. However, python3 --version still tells me I have 3.5.1?

My work computer does not have this issue, so something seems to be pointing the wrong way on my personal machine. 3.5 has reached the end of its life, as Python keeps telling me, so any suggestions are appreciated.

1

There are 1 best solutions below

0
On

I tried to just restart the terminal but which python3 still pointed to 3.5. After changing the PATH with echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.zshrc and then also restarting the terminal it worked.