使用pip时,如何设置distutils使用的日志级别? [英] How can I set log level used by distutils when using pip?
问题描述
我试图找出pip install greenlet
之后error: Unable to find vcvarsall.bat
的原因.我想设置distutils使用的日志级别,以便调试消息如 将被打印.在查看 def parse_command_line(self):
之后,我想到了pip install --install-option="-vv" greenlet
应该可以,但是不能(详细程度仍然为1).
I'm trying to find out what's the reason of error: Unable to find vcvarsall.bat
after pip install greenlet
. I'd like to set log level used by distutils so that debug messages like log.debug("Unable to find productdir in registry")
would get printed. After looking at def parse_command_line(self):
I thought pip install --install-option="-vv" greenlet
should work but it doesn't (verbosity is still 1).
我该怎么做?
推荐答案
正确的方法是对pip install
使用--global-option="-vv"
开关,当调用install
之间传递选项>
The correct way is to use the --global-option="-vv"
switch for pip install
, which passes the option in between setup.py
and install
when invoking setup.py
这篇关于使用pip时,如何设置distutils使用的日志级别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!