Fix - macOS Sonoma 14 - zsh: command not found: python


If you try to run Python command on macOS 14 Sonoma on your Mac, you will get an error "zsh: command not found: python", this is because, python is the default command to run Python 2.x version from the Terminal, and Python 2.x is not pre-installed on macOS Sonoma 14.

We have python3 that is preinstalled under /usr/bin/python3 location.

% which python3

/usr/bin/python3
macOS Sonoma 14 - zsh command not found - python

This is not an AI-generated article but is demonstrated by a human on an M1 Mac running macOS Sonoma 14.0.

Please support independent contributors like Code2care by donating a coffee.

Buy me a coffee!

Buy Code2care a Coffee!

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap