Why doesn't pip make logs of which version of which lib was installed when? If you update a library to a broken version then what? How do you know which version is not broken?
Those who upvote this - can you tell me why are you doing it?
1 Answer. You can specify a log file at the command line when running pip using the --log LOG_FILE argument. For example, pip install click --log LOG_FILE .
run the pip command in verbose mode. It will display everything even errors those things will come to this file. So, it has all info you need.
pip --help pip list --help pip show --help etc. Show activity on this post. should give you the creation time of a file, i.e. date of when the package has been installed or updated.
When you run the pip, you can specify the logfile. This way you can track the installation logs in future.
pip install pylint --log LOG_FILE
Or you can set it in your pip.conf to be enabled by default:
[global]
log = <path>
Hope this helps.However this is not exactly what you asked. This is just to help achieve that. For windows: Quoting from https://pip.pypa.io/en/stable/user_guide/#config-file
On Windows the configuration file is %APPDATA%\pip\pip.ini.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With