more debug if pip installs fail

This commit is contained in:
Paul Gauthier 2024-07-31 09:52:41 -03:00
parent 080953760f
commit 1aaa8365d2

View file

@ -255,13 +255,12 @@ def check_pip_install_extra(io, module, prompt, pip_install_cmd):
return return
success, output = run_install(cmd) success, output = run_install(cmd)
if not success: if success:
return
try: try:
__import__(module) __import__(module)
return True return True
except (ImportError, ModuleNotFoundError): except (ImportError, ModuleNotFoundError) as err:
io.tool_error(str(err))
pass pass
io.tool_error(output) io.tool_error(output)