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

History of pip commands (install/uninstall) #9876

Open
gst opened this issue Apr 26, 2021 · 5 comments
Open

History of pip commands (install/uninstall) #9876

gst opened this issue Apr 26, 2021 · 5 comments
Labels
type: feature request Request for a new feature

Comments

@gst
Copy link

gst commented Apr 26, 2021

What's the problem this feature will solve?

Allow one to investigate package dependencies issues based on pip installation/commands history.

Describe the solution you'd like

I would like pip to record in a kind of history file for each install/uninstall action it executes.

@gst
Copy link
Author

gst commented Apr 27, 2021

something just like debian apt history log file..

@uranusjr uranusjr added the type: feature request Request for a new feature label Apr 27, 2021
@uranusjr
Copy link
Member

Sounds like a reasonable feature to me. This file needs to be per-environment since that’s what people actually care. The problem is, pip can be run in a lot of combination of ways (--prefix, --user, --target, directly against an executable with python /path/to/pip/package), etc. So you will need to deal with a lot of installation scheme edge cases. I’m not getting myself into this, but feel free to try your hands on it 🙂

@pfmoore
Copy link
Member

pfmoore commented Apr 27, 2021

Also, it should be made opt-in (via a command line flag). I don't really like the idea of pip starting to clutter the filesystem with unwanted install history files, and this seems like a relatively uncommon requirement.

@ichard26 ichard26 mentioned this issue Apr 15, 2024
1 task
@ManPython
Copy link

@ichard26 I think that issue is near but not this same. The my ticket was related with modules history, esspecialy venv.
Here is more not history, but `Log of pip commands' that can be a big garbage. In fact any cmd should have this type on windows, like a shell, etc. But in case not exist, then sure.. can be config for pop to grab logs.

@pfmoore
Copy link
Member

pfmoore commented Apr 15, 2024

Both are talking about pip keeping some sort of log/history of "what happened in the past". Given that no-one has yet shown any interest in working on implementing either proposal, I don't think it's of much benefit to have the discussion1 split across two issues.

Unless we end up in the enviable position of having two PRs to choose between, I think a single issue is sufficient.

Footnotes

  1. Or rather, the lack of discussion 🤷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request Request for a new feature
Projects
None yet
Development

No branches or pull requests

4 participants