astral-sh/uv

Add `conda` environment support for `--active` flag

Open

#11,315 opened on Feb 7, 2025

View on GitHub
 (5 comments) (8 reactions) (0 assignees)Rust (3,111 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (84,934 stars)
PR merge metrics
 (Avg merge 7d 16h) (259 merged PRs in 30d)

Description

Summary

The new --active flag (https://github.com/astral-sh/uv/pull/11189) is a great addition and I think it goes some way to allow uv and conda to work better together. But it does not respect conda environment and only use VIRTUAL_ENV variable.

Would it be possible to add a support for conda environment for --active flag? Simply using CONDA_PREFIX instead of VIRTUAL_ENV when CONDA_DEFAULT_ENV is not base and not empty would be enough, I guess.

Example

No response

Contributor guide