Pip安装日志在哪里? [英] Where are Pip installation logs?

查看:1482
本文介绍了Pip安装日志在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么不使用pip记录何时安装了哪个版本的lib?如果您将库更新为损坏的版本,那该怎么办?您怎么知道哪个版本没有损坏?

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?

推荐答案

运行pip时,可以指定日志文件.这样,您以后就可以跟踪安装日志.

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

或者您可以在pip.conf中将其设置为默认启用:

Or you can set it in your pip.conf to be enabled by default:

[global]
log = <path>

希望这会有所帮助.但是,这并非您真正要求的.这只是为了帮助实现这一目标. 对于Windows: 引用自 https://pip.pypa.io/en/stable/user_guide/#config-file

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.

这篇关于Pip安装日志在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆