How to use pip in a uv virtual environment
by Tim Hopper
When working with uv, you might occasionally need access to pip in your virtual environments, particularly when using tools that rely on pip directly, such as Jupyter’s %pip magic command.
Adding pip to a uv Virtual Environment
By default, uv virtual environments don’t include pip. To create a virtual environment with pip installed:
uv venv --seedTo add pip to an existing virtual environment:
uv pip install pipActivating the Environment
Once you’ve created the environment with pip, activate it:
# On Unix/macOS
source .venv/bin/activate
# On Windows
.venv\Scripts\activateNow you can use pip commands directly, e.g.,
pip listAlso Mentioned In
Get Python tooling updates
Subscribe to the newsletterLast updated on
How to use a uv lockfile for reproducible Python environmentsHow to Use Poe the Poet as a Task Runner with uv