When trying to run python from the terminal, it is possible to run into the following issue: zsh: command not found: python This can happen on any system but does occur slightly more commonly on macOS since they removed native python support in macOS 12.3. Fortunately, this issue is easy to fix. Step 1: make sure Python is installed The first thing you should check is that python is installed. You can install python from the terminal if you have installed it by simply typing: brew brew install python to install it. Once is installed, try running from the terminal again. If you still face the same issue, move to step 2. You can also download the executable directly from the Python website python python Step 2: add python to zsh The next step is to add to zsh so that it will run upon typing the command. You can do this by running the following in terminal: python python echo "alias python=/usr/bin/python3" >> ~/.zshrc This will configure your zsh profile to run when is run. If you are still facing issues, ensure that where the $ sign should equal the path is installed on. /usr/bin/python3 python python=$ python Step 3: restart terminal Now that you've done that, simply restart your terminal. When you open it again, your command should work successfully. python Also published . here