-
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
pip install prints the wrong packages installed #12926
Comments
Are you taking into account of both of your commands? This
When you follow it with
Then running pip freeze you get:
Which appears to be the sum of the two commands. Would you expect something else? |
The version displayed when installing packages is the version uninstalled which is unexpected. |
As you can see from my output that's not the case when I run the commands. Also reading your output it looks correct if you swap the order. Can you copy running the sequence of commands in order straight from your terminal without separating the to be sure it's an actual pip issue. |
Hi, I ran the commands in the order I copied them here. On your computer it may be working properly but on my computer it's not. I can't copy more than I copied. |
Unfortunately without a reproducible example there isn't anything anyone else can test against to confirm or fix. |
I can confirm that on my laptop, Windows 11, this bug persists with Python 3.11.9 and Python 3.12.4 also after uninstalling Python, reinstalling Python, deleting the .venv directory and recreating it again. On the other hand I have another computer (desktop with Windows 10), where this bug doesn't occur. |
Description
I ran pip upgrade. I got many packagers uninstalled and installed.
At the end I get this line:
Successfully installed Faker-25.3.0 boto3-1.34.117 botocore-1.34.117 django-crispy-forms-2.1 django-debug-toolbar-4.4.2 django-translated-fields-0.12.0 factory-boy-3.3.0 pillow-10.3.0 s3transfer-0.10.1 sqlparse-0.5.0 typing_extensions-4.12.1 urllib3-2.2.1
Then I run pip freeze:
The packages printed are not the packages installed. Actually they were uninstalled.
Expected behavior
No response
pip version
pip 24.2
Python version
Python 3.11.9, Python 3.12.4
OS
Windows 11
How to Reproduce
pip install --upgrade -r requirements.txt -r tests-requirements.txt -r debug-requirements.txt
pip install --upgrade -r requirements-pip-upgrade.txt -r tests-requirements-pip-upgrade.txt -r debug-requirements-pip-upgrade.txt
Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: