-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
python -m pip install uv
does not install stub - pip install uv
does
#2486
Comments
Is it possible that this worked prior to v0.1.19? If so, it might be fixed by #2503. |
Doesn't look like it:
I found the binaries in https://github.com/astral-sh/uv/actions/runs/8320517237, but how can I try with pip installation using those? :) |
Do you mind re-resting? |
Thanks, will retest in early June. |
I can still reproduce the problem (Python 3.12.3, uv 0.2.5). |
I think you need to activate the virtual environment here? |
Unlikely - I use |
I can still reproduce this with Both
and
sometimes fail like this:
Interestingly, it always works this way:
and once it works this way, the above two commands also work. So there must be some additional state that causes breakage. |
Hmm ok, I ran the first command without issue just now. I'm guessing it's something to do with the pyenv interaction...? |
May well be, yes. Unfortunately, I do not use system python anywhere and would like to avoid polluting my system with all the dependencies that come with it, so I cannot compare. But I was able to come up with very simple reproduction steps on another, clean WSL instance (in terms of Python):
So whatever state makes the commands above sometimes work and sometimes not, installing |
Is this issue specific to uv? The reproduction you just shared seems entirely unrelated to our behaviors — i.e. it's pip and pyenv's job to properly install uv. |
Agreed.
I thought so, and I remember that I tested Long story short: with the above reproduction steps, in a clean environment, I can reproduce the same behavior with |
Follow pypa/pip#12909 if interested. |
I am not even sure this is a bug in
uv
(rather than inpip
orpyenv
), but since I have never noticed such behavior (e.g., withpylint
), I thought it made sense to report it.Basically,
python -m pip install uv
behaves different frompip install uv
in installing auv
executable withpyenv
, see below:The text was updated successfully, but these errors were encountered: