r/learnpython • • Dec 04 '24

difference between python and python3

im new to python, what are the key differences between those 2 ?

0 Upvotes

11 comments sorted by

View all comments

1

u/DesperateRadio7233 May 07 '25

On a windows computer in command prompt, when you install python, you are installing the only version of python on the computer and thus the command in the prompt is "python". However, for some UNIX-based operating systems such as Mac OS, when python installed, "python3" is the default for the operating system while the term "python" is used within the operating system as a symbolic link for compatibility with python 2 applications. Thus, by distinctly having python3, mac os allows for easier distinction between the older and newer python version (if both are installed on a single device for application compatibility reasons).

1

u/caivsivlivs Oct 28 '25

Thanks for this!!!