Integrating Uv, Conda and Pip without Getting Crazy

Integrating Uv, Conda and Pip without Getting Crazy

Last updated:
Integrating Uv, Conda and Pip without Getting Crazy
Created with AI
Table of Contents

WIP Alert This is a work in progress. Current information is correct but more content may be added in the future.

See also Conda, Pip, Virtualenv and Pyenv: Commands Compared

My current setup on MacOS is as follows:

  • Manage virtualenvs with Conda
  • Manage dependencies with uv but also use pip in some legacy projects
  • Download, compile and sync dependencies with uv

Create and Activate the Conda Virtualenv

TODO

  • Install uv into the newly-created Conda virtualenv using pip: $ pip install uv

Sync the Conda Virtualenv from a Legacy requirements.txt File Using Uv

(my-venv)$ uv pip sync requirements.txt

Compile Dependencies into a Legacy requirements.txt File

$ uv pip compile requirements.in -o requirements.txt

Dialogue & Discussion