使用pip时,如何设置distutils使用的日志级别? [英] How can I set log level used by distutils when using pip?

查看:109
本文介绍了使用pip时,如何设置distutils使用的日志级别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找出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"开关,当调用setup.py和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屋!

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