-
Notifications
You must be signed in to change notification settings - Fork 671
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
Install uses wrong package location when a secondary Python installation is declared as venv #2387
Comments
I'm not sure on this one... I think it'd be error-prone to treat |
A virtual environment has a more "formal" definition (AFAIK), which is, a Python interpreter in which |
I think this is reasonably solved by creating a real virtual environment, or using |
Digging through the docs, I believe this is guaranteed for "UNIX and non-framework MacOS builds" (under the condition that I agree this is solved by I will say that while I understand wanting to push users away from modifying the system Python, there are a lot of ways to install Python that are global but not the system Python, and passing both |
I think this would work now with |
On Ubuntu 22.04, with Python installed to
~/.local/bin/python
through a symlink (->/usr/bin/python
->/usr/bin/python3.11
) andVIRTUAL_ENV=~/.local/
:With
uv==0.1.11
,uv pip install
installs to~/.local/lib/python3.11/site-packages
. This makes sense.With
uv==0.1.12
,uv pip install
attempts to install to/usr/local/lib/python3.11/dist-packages
(and fails because of insufficient permissions). I would expect this to still attempt to install to~/.local
, since that was declared as the virtual environment.I believe #2353, #2059, #1584, #1526 are related (e.g. the
--user
flag would at least resolve this issue), but it seems like this may be a separate problem with the order of resolution of possible installation locations; that is, I'd expectuv
to attempt to install to a virtual environment if one is declared, even if the virtual environment eventually resolves to a system(ish) Python installation.The text was updated successfully, but these errors were encountered: