Fix call to pip

Use sys.executable and decode the output
This commit is contained in:
Petr Viktorin 2019-07-17 16:17:14 +02:00
parent 0878a7a9a4
commit 095970b345

View File

@ -195,7 +195,8 @@ def main(argv):
exit(1) exit(1)
freeze_output = subprocess.run( freeze_output = subprocess.run(
['pip', 'freeze', '--all'], [sys.executable, '-I', '-m', 'pip', 'freeze', '--all'],
encoding='utf-8',
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
check=True, check=True,
).stdout ).stdout