How can I set log level used by distutils when using pip?

瘦欲@ 提交于 2019-12-10 14:53:35

问题


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).

How can I do this?


回答1:


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




回答2:


Try to set DISTUTILS_DEBUG in the environment.



来源:https://stackoverflow.com/questions/8701598/how-can-i-set-log-level-used-by-distutils-when-using-pip

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