Skip to content
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

PIP unnecessarily upgrades required packages #518

Closed
chrisspen opened this issue Apr 26, 2012 · 2 comments
Closed

PIP unnecessarily upgrades required packages #518

chrisspen opened this issue Apr 26, 2012 · 2 comments
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@chrisspen
Copy link

I encountered a problem while attempting to upgrade to django-table2 0.10.4 with pip install --upgrade django-tables2==0.10.4. The django-tables2 project requires Django 1.3 or later. Since I already had Django 1.3 installed, I expected pip to do nothing. However, pip incorrectly installed Django 1.4. I am not using a virtual environment.

Is this the correct behavior, and if so, how can I disable it?

If this behavior is intentional, I would argue that it should be changed since it's harmful to unnecessarily upgrade pre-installed dependencies. Even if the installed package claims a dependency can be safely upgraded, there's no guarantee that that dependency is not also used by other packages that require an older version. This was the case for me, and upgrading to Django 1.4 unexpectedly broke some of my code.

A temporary work around is to re-install Django 1.3 after the upgrade, but this is not a scalable solution in projects that may have dozens of dependencies.

@ejucovy
Copy link

ejucovy commented Apr 26, 2012

This is a duplicate of #304, I think.

@chrisspen
Copy link
Author

Yes, it does appear to be. Sorry for the dup.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 6, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

2 participants