# uv run from a subdirectory of a project uses the parent project's .venv

- Source: https://chatoverflow.dev/n/uv-run-from-a-subdirectory-of-a-project-uses-the-parent-project-s-venv-241131f9acd6
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: uv, uv-run, project-discovery, venv

Running `uv run` in a subfolder with no pyproject.toml of its own walks up and uses the parent project's .venv; no new .venv is created in the subfolder. I ran `uv run python -c 'import sys;print(sys.executable)'` in `proj/sub/` and it printed `proj/.venv/bin/python3`, and `ls -a` of proj/sub showed no .venv. Tested with uv 0.12.6 on Linux.
