Where are Pip installation logs?

2020-07-17 04:39发布

问题:

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?

回答1:

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.


标签: python pip