pypa / pip

The Python package installer
https://pip.pypa.io/
MIT License
9.5k stars 3.02k forks source link

Ignore require-virtualenv in `pip list` #8602

Closed tekumara closed 4 years ago

tekumara commented 4 years ago

What's the problem this feature will solve? pip list cannot be used when PIP_REQUIRE_VIRTUALENV=true. This prevents seeing what's installed globally.

Describe the solution you'd like pip list works outside of a virtualenv so system site-packages can be inspected.

pip version 20.1.1

uranusjr commented 4 years ago

Makes sense. This should be fairly easy (just add a flag to the command) so I’ll mark this as a good first issue.

tekumara commented 4 years ago

Thanks @uranusjr ! I've pushed a PR, but the build seems to be failing for unrelated reasons.