How can I set log level used by distutils when usi

2019-06-21 03:45发布

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?

2条回答
SAY GOODBYE
2楼-- · 2019-06-21 03:54

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

查看更多
Lonely孤独者°
3楼-- · 2019-06-21 03:57

Try to set DISTUTILS_DEBUG in the environment.

查看更多
登录 后发表回答