Skip to content

uv pip install reinstalls packages that are available via --system-site-packages #7358

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

Closed
BubuOT opened this issue Sep 13, 2024 · 1 comment
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@BubuOT
Copy link

BubuOT commented Sep 13, 2024

When creating a virtualenv (either with python -m venv --system-site-packages

or withuv venv --system-site-packages` the packages installed in the system python installation are not recognized by uv at all. We then install a wheel into our venv, expecting uv to only download the missing dependencies. uv redownloeads and reinstalls a lot of additional packages which are already available in the system though. pip correctly installs only the missing packages.

Our targets are embedded devices which ship a python installation with most dependencies installed and updated via the firmware image, for custom deployments and prototyping we'd like an easy way to "overlay" the available system packages with newer versions or additional dependencies. (Also this happens via mobile network, so downloading an additional maybe 30MB of dependencies could be a big deal, depending on the connection quality)

Platform: linux-aarch64, uv 0.4.9

@charliermarsh
Copy link
Member

We don't really support --system-site-packages -- it's the same as #4466 etc. Instead you'd need to use uv pip install --system and other commands, or feel free to comment on #4466.

@charliermarsh charliermarsh closed this as not planned Won't fix, can't repro, duplicate, stale Sep 13, 2024
@charliermarsh charliermarsh added duplicate This issue or pull request already exists bug Something isn't working labels Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants