uv icon indicating copy to clipboard operation
uv copied to clipboard

Add support for managing Conda environments and packages

Open matterhorn103 opened this issue 1 year ago • 20 comments

I'm very excited by uv and the possibilities it hints at for the future of one-stop packaging and environment management.

As for a vast number of scientists, though, conda is pretty much essential to many of my projects. A package manager limited to PyPI may replace pip and venv for pure Python projects for me but will always have to sit alongside conda with conda-forge.

I get that it's still very early days, but are there any ambitions/plans to truly turn Python packaging into a single effective ecosystem and unite the science and programming camps? Might uv in future also manage conda environments or use packages from conda-forge/other repos?

Or should I reign in my excitement a little?

matterhorn103 avatar Feb 19 '24 16:02 matterhorn103

This might be out of scope for us. I'm not sure about the long-term future, but definitely in the short term. Prefix.dev is more focused on conda integration.

zanieb avatar Feb 19 '24 16:02 zanieb

Ok, thanks. I understand, but still a pity. A single Python management tool for both camps would be nice one day.

Hopefully the collaboration between you and the pixi team continues and they become complementary tools following the same standards :)

matterhorn103 avatar Feb 19 '24 19:02 matterhorn103

Wanted to echo my support for this question as well. Many AI/ML and scientific workflows rely on Python packages that have complex C/C++ dependencies. GDAL is a good example of a package that is essential for many Python applications, but installing it via Pip requires that you have already installed the GDAL C library your machine.

Conda-based tools generally do a good job of managing both the Python and C/C++ dependencies, which is why many scientists use this ecosystem. Unfortunately, using a package manager that cannot manage these lower-level dependencies is a non-starter for many of us.

Would love to see the uv team try to come up with their own solution for this problem sometime in the future!

forrestfwilliams avatar Feb 21 '24 13:02 forrestfwilliams

Just ran into this with a requirement to use mambda to use a specific version of tensorflow on a Mac. It would be great if UV could support conda environments.

sam-goodwin avatar Apr 10 '24 23:04 sam-goodwin

just had an issue that uv does not work in a conda environment, but installation is ok. uv binary is missing.

den-run-ai avatar May 07 '24 18:05 den-run-ai