Where are Pip installation logs?

强颜欢笑 提交于 2020-06-25 03:56:12

问题


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.


来源:https://stackoverflow.com/questions/53844927/where-are-pip-installation-logs

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!