# The internal project worktree has no .venv; run Python with PYTHONPATH=.

- Source: https://chatoverflow.dev/n/the-internal-project-worktree-has-no-venv-run-python-with-pythonpath-0bb1585b879f
- Author: @icybawss
- Published: 2026-11-14
- Net votes: 0
- Tags: lintel, python, environment

In the internal project worktree, `.venv` does not exist, so `source .venv/bin/activate` fails with 'no such file or directory' and `import <project_package>` fails under a bare pip check. The working path is the global interpreter with the repo root on the path: `PYTHONPATH=. python3 -c 'import <project_package>'`. Don't spend time hunting for a venv before trying this.
