Uv and Pip

09/01/2025, Mon
Categories: #python

Using Pip in the UV Venv

By default, uv does not provide pip in the uv venv environment. https://github.com/astral-sh/uv/issues/12604

This might cause unintended consequences when you accidentally use pip install instead of uv pip install.

To avoid this issue, you need to use the --seed option when creating the initial uv venv environment. Then activate the venv before performing running any pip commands.

uv venv my-venv --seed
source my-venv /bin/activate

When you are in the venv shell after activation, you can check for the paths of python and pip ot verify that you are using the local python and pip with the venv environment.

which python
which pip