From 6bda64bf472e080bd34546cc541a652421446fac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bal=C3=A1=C5=BE?= Date: Wed, 24 Jun 2020 15:58:28 +0200 Subject: [PATCH] set universal_lines to True(Windows compatibility) --- pim/commands/install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pim/commands/install.py b/pim/commands/install.py index 034d012..d161379 100644 --- a/pim/commands/install.py +++ b/pim/commands/install.py @@ -29,7 +29,7 @@ def install(packages, globally): for name in packages: try: cmd = ['pip', 'install', name] - output = subprocess.check_output(cmd, stderr=subprocess.STDOUT) + output = subprocess.check_output(cmd, stderr=subprocess.STDOUT, universal_newlines=True) if not output.startswith('Requirement already satisfied'): installed += [name] except subprocess.CalledProcessError as e: