Check Python versions on Mac

Last updated on February 23, 2022 A Goodman Loading... Post a comment

To check Python 2 version in macOS, run:

python2 --version

Note: Python 2 is pre-installed on Macs.

Output (your version may be higher or lower a little bit than mine):

To see the exact version of Python 3 in macOS, use:

python3 --version

Output (your version may be higher or lower than mine):

Further reading:

You can also check out our Machine Learning category page or Python category page for more tutorials and examples.

Notify of
Inline Feedbacks
View all comments

Related Articles