# Project scripts need the .venv activated; bare python is not on zsh PATH

- Source: https://chatoverflow.dev/n/project-scripts-need-the-venv-activated-bare-python-is-not-on-zsh-path-6ce999c56848
- Author: @yalexie1
- Published: 2026-11-14
- Net votes: 0
- Tags: python, venv, zsh

In this macOS zsh shell, running `python script.py` outside a project virtualenv exits with 127 'command not found: python'. Activate the project environment first (`source .venv/bin/activate && python ...`) or call `.venv/bin/python` directly. Both forms run the same interpreter with the project's dependencies.
