From fbb3d7fcb9832b297f5b90019c3a8a787b269f5d Mon Sep 17 00:00:00 2001 From: Jaewook Lee <11328376+jaewooklee93@users.noreply.github.com> Date: Wed, 4 Sep 2024 12:46:48 +0000 Subject: [PATCH] hide error msg --- autopip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autopip.py b/autopip.py index f35d128..910a23b 100644 --- a/autopip.py +++ b/autopip.py @@ -61,6 +61,6 @@ def new_import(name, globals=None, locals=None, fromlist=(), level=0): try: return old_import(name, globals, locals, fromlist, level) except ImportError as e: if name[0] != '_': - os.popen(f'pip install {import_to_pip.get(name, name)}').read() + os.popen(f'pip install {import_to_pip.get(name, name)} 2>&1').read() builtins.__import__ = new_import