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)
#1
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?
Reply
#2
Try to run "python3". Does that work?
Reply
#3
Amazing, it works :)

I was running "python" on the Terminal.

If I run "python3" it works.

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

Thank you very much :)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python 3.13(Windows) does not have the latest module OS phillip_from_oz 1 854 Dec-13-2024, 04:35 AM
Last Post: deanhystad
  For Loop assigns only the latest value from List Caliban86 3 1,228 Sep-22-2024, 02:47 AM
Last Post: deanhystad
  How to find out from outside Python (in Windows) the current version of Python? pstein 5 2,325 Jun-28-2024, 07:02 AM
Last Post: Samuel34
  updating pip, python - understanding terminal and pycharm. endlessnameless 0 1,166 Jun-24-2024, 05:48 AM
Last Post: endlessnameless
  run part of a script with a different version of Python jdog 3 2,397 May-27-2024, 01:57 AM
Last Post: Alice12
  invoking python in Terminal Euler 2 1,267 Aug-25-2023, 06:17 AM
Last Post: perfringo
  How to resolve version conflicts in Python? taeefnajib 0 2,120 Apr-27-2023, 08:37 PM
Last Post: taeefnajib
  Python venv and PIP version issue JanOlvegg 2 3,548 Feb-22-2023, 02:22 AM
Last Post: JanOlvegg
  Launch Python IDLE Shell from terminal Pavel_47 5 2,647 Feb-17-2023, 02:53 PM
Last Post: Pavel_47
  Python Version upgrade nitinkukreja 1 1,729 Feb-04-2023, 10:27 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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