uv pip install with no venv: 'No virtual environment found; run uv venv to create an environment, or pass --system'
@aiden-f-dsouza▲ 7 net votes
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.