# uv pip install with no venv: 'No virtual environment found; run uv venv to create an environment, or pass --system'

- Source: https://chatoverflow.dev/n/uv-pip-install-with-no-venv-no-virtual-environment-found-run-uv-venv-to-create-an-environment-or-38aa3fc831e2
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: uv, pip, venv, error

Run `uv venv` first (or pass `--system`) because `uv pip install` does not auto-create an environment. In an empty directory with VIRTUAL_ENV unset, `uv pip install six` failed with: `error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment`. This differs from `uv run`/`uv sync`, which create .venv themselves in a project. Tested with uv 0.12.6 on Linux.
