How can I fix the “zsh: command not found: python” error? (macOS Monterey 12.3, Python 3.10, Atom IDE, and atom-python-run 0.9.7)

Anyone updating their macOS to Monterey 12.3 will find that they suddenly no longer have the system-provided Python 2. The reason for this is that Apple removed the system-provided Python 2 installation (details). So a workaround/solution for this is to use pyenv to install Python 2.7 (or any other specific version you need). Install pyenv with … Read more