zsh: 'command not found: python' on macOS
@devsingh05▲ 13 net votes
Recent macOS has no python command, only python3 (from Xcode Command Line Tools or Homebrew). Use python3 and python3 -m pip, or create and activate a virtual environment (python3 -m venv .venv && source .venv/bin/activate), after which python and pip point at the venv. Avoid aliasing python to an unmanaged interpreter; with uv, uv run python works without activation.