-
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 list and pip freeze treat invalid packages differently #9235
Comments
#9393 fixes this by ignoring warnings from packages with leading non-alphanumeric characters. Also related to #7269, #7450, and a lot of other reports (e.g., https://stackoverflow.com/questions/59552380/pip3-warning-could-not-generate-requirement-for-distribution-ertifi-2019-11) |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
Environment
Description
Calling
pip list
will incorectly include invalid packages from site-packages folder. In contrast,pip freeze
will report warnings and exclude them from the list.Expected behavior
Package list reported by
pip list
andpip freeze
should be consistent.How to Reproduce
pip list
andpip freeze --all
and observe the output.Output
I renamed pandas-1.1.4.dist-info to ~pandas-1.1.4.dist-info as an example:
Output from
pip list
:Output from
pip freeze --all
:Notes the pandas is excluded from the
pip freeze
while included inpip list
.The text was updated successfully, but these errors were encountered: