Python Forum
Running latest Python version on the Terminal (MAC)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Running latest Python version on the Terminal (MAC)
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?
Try to run "python3". Does that work?
Amazing, it works :)

I was running "python" on the Terminal.

If I run "python3" it works.

Thanks a lot :)
Also look at The right and wrong way to set Python 3 as default on a Mac
Cool, sure I'll have a look

Thank you very much :)

Possibly Related Threads…
Thread Author Replies Views Last Post
  Dynamic Printing With Python Terminal MrTim 2 194 Jul-06-2021, 04:00 PM
Last Post: MrTim
  db migration(db version control) for python lubaz 2 352 May-30-2021, 01:36 PM
Last Post: lubaz
  keyboard module doesn't work in the microsoft version terminal of python. username 1 531 Feb-25-2021, 05:19 PM
Last Post: Larz60+
  gnome terminal playing with python jmex 12 952 Feb-03-2021, 01:38 PM
Last Post: Axel_Erfurt
  Refresh data in python script while running in Terminal frankenchrist 4 769 Feb-03-2021, 09:54 AM
Last Post: Larz60+
  Optimize a game of life (4 sec for python when 6 ms for C version !) fatango 0 358 Jan-06-2021, 09:13 PM
Last Post: fatango
  Latest file with a pattern produces an error tester_V 4 698 Dec-10-2020, 02:14 AM
Last Post: tester_V
  Error on Python Version? ErnestTBass 6 873 Dec-09-2020, 04:02 PM
Last Post: ErnestTBass
  Read plotly-latest.min.js from local issac_n 1 528 Nov-18-2020, 02:08 PM
Last Post: issac_n
  Last Python (64bit) version for Windows 7? pstein 3 855 Nov-15-2020, 02:09 PM
Last Post: jefsummers

Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020