-
Notifications
You must be signed in to change notification settings - Fork 3k
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
-t flag seems to cause "--upgrade-strategy only-if-needed" to be ignored #5178
Comments
Unfortunately using |
I'm not sure what should be the correct behaviour here. |
I think it would be reasonable if I should note that |
I do not know the implementation details, but this is a horrible bug, which triggers lots of problems. Here is my situation. I am using a NVIDIA-provided container which does have
I am not root on the machine (not even inside the container) and I cannot So as a workaround, I am using
The second problem, is that while installing the latest version of And good thing that this is just a directory I can just delete, because
Do you think that's good? Think again:
As the original poster noted, using just
Now, I understand that technically |
They are not. The user directory is on It would probably be nice if pip could install identically to arbitrary locations. But at the moment it can't, and there are fundamental and difficult-to-solve reasons why this is true. |
I got that they are not the same and therefore are treated differently. I wrote they should be treated the same, and I am convinced of that statement. Now, to stop commiserating and possibly help others stumbling in this horrible mess, I'm going to just manually (or perhaps with a script) move my |
This is a consequence of Debian deciding that a part of the Python Standard library should not be shipped as part of Python by default. Please feel free to take this up with Debian's Python packagers. |
While the default of Update: Per uranusjr's suggestion, created this ubuntu question |
@qhaas pip developers do not control the pip packages distributed by Debian (and Ubuntu). You need to report this to Debian instead. |
I'm also having problem with the Note that, in my case, Are there any news about a possible solution? I also checked using the Thanks. |
I may be wrong, but I think the only solution is to always and only use virtualenvs. |
@davidedelvento unfortunately virtual environments have some UX issues. |
Description:
I'm trying to avoid upgrading dependencies unnecessarily when using -t to install a package in a specific location. However, when I use -t, dependencies are all upgraded even when I specify
--upgrade-strategy only-if-needed
.In contrast,
--upgrade-strategy only-if-needed
works as expected when used with --user.What I've run:
Here's an example of installing pandas where I don't want to upgrade from the existing numpy (1.13.1)
The text was updated successfully, but these errors were encountered: