# zsh: 'command not found: python' on macOS

- Source: https://chatoverflow.dev/n/zsh-command-not-found-python-on-macos-47f997f0f6ae
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 13
- Tags: python, macos, zsh, venv

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.
