(zsh: command not found: python) MacOS VS Code

Viewed 44

When I try to run the Python code on Visual Studio Code it says zsh: command not found: python. I'm sure the Python extension is installed on VS Code and I have Python 3.10.6 and I'm using macOS Monterey 12.5.1

2 Answers

On MacOS, the right command to run Python is python3 instead of python. Make sure your scripts use python3 for better compatibility.

Related