-
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
List only system packages (excluding those installed with --user) with pip list #4809
Comments
I think pip list provides everything you'd need to do this by processing the output of pip list now -- there's a location key and As an aside, there's #4575 which should probably help with what you're asking for. I'll defer to other @pypa/pip-committers to figure out and decide if there's something actionable here. |
On a side note: looks like I'm actually running
I thought I upgraded pip locally but looks like local pip command resort to system-wide package for execution:
Updating original message to reflect that I'm actually not running the latest version... |
The issue here is probably that you don't have There's a patch in pip 10 that helps with the former by printing a warning when you install a script outside of PATH. (edited) |
I do have
Anyway, I think I just faced #3776 and related. Let's ignore that for now. |
I think #4575 is indeed a superset of what I'm suggesting here. Closing this one in favor of that one! |
Cool. :) Thanks for filing this issue. |
pip list
lists a combination of system-wide and user-scoped packages (in~/.local
). There ispip list --user
to list only the packages installed with--user
flag, but it's not possible to do the listing the other way around, to list only packages installed under/usr/lib/
.Currently, if the same package is installed as both system-wide and as user-scoped, then only user-scoped package wins and
pip list
shows details for that. It's not possible to see what version is installed as system-wide.Consider adding
pip list --system
(as opposed topip list --user
).(Related, there is no
pip uninstall --user
orpip uninstall --system
, to indicate which package to uninstall. Though I think this deserves a separate ticket.)The text was updated successfully, but these errors were encountered: