-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reconsider priority of CONDA_PREFIX when discovering virtual environments #8940
Comments
Yes - I can confirm this is fixed in 0.5! Here's my experiment to prove it - I tried uv 0.4 and the package was installed in the Conda environment, but under 0.5 the same thing put it in
|
Turns out this issue was a dupe of: |
Great timing :D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is the current treatment of
CONDA_PREFIX
definitely the right thing to do?https://docs.astral.sh/uv/pip/environments/#discovery-of-python-environments
Here's the problem: like many Python users (I imagine), while I don't actually use Conda I did end up with it on my system after one of many frustrating bouts of trying to use one machine learning library or another.
This means most of my shells now have that environment variable set.
As a result,
uv
was behaving very strangely for me. I made a bunch of notes in figuring this out here: https://gist.github.com/simonw/975dfa41e9b03bca2513a986d9aa3dcfTLDR: Running
uv pip install -e '.[test]'
installed stuff in my global Conda environment and not my local.venv/
folder and I couldn't figure out why.I doubt I'm the only person who has been confused by this. Is the current behavior an irreversible decision at this point?
The text was updated successfully, but these errors were encountered: