Python Forum
Running latest Python version on the Terminal (MAC) - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Running latest Python version on the Terminal (MAC) (/thread-32979.html)



Running latest Python version on the Terminal (MAC) - Damian - Mar-20-2021

Hi all,

on my Terminal on Mac I've got Python 2.7.16.

(I had an issue: if I do 5 / 2 on Python 2.7.16 it returns 2 while Python on Repl returns 2.5)

I'd like to update it to the latest version and therefore solve this issue.

So, I downloaded the latest version.

I followed the installation process and everything was smooth.

But when I run "python" again on the Terminal I still see Python 2.7.16.

How can I run the latest Python version on my Terminal?


RE: Running latest Python version on the Terminal (MAC) - ibreeden - Mar-21-2021

Try to run "python3". Does that work?


RE: Running latest Python version on the Terminal (MAC) - Damian - Mar-21-2021

Amazing, it works :)

I was running "python" on the Terminal.

If I run "python3" it works.

Thanks a lot :)


RE: Running latest Python version on the Terminal (MAC) - snippsat - Mar-22-2021

Also look at The right and wrong way to set Python 3 as default on a Mac


RE: Running latest Python version on the Terminal (MAC) - Damian - Mar-22-2021

Cool, sure I'll have a look

Thank you very much :)