I am trying to create a script to install an embedded version of python and I am using get-pip.py to add PIP to it. I have tried to execute this script in a background subprocess by creationflags=0x00000008
and it fails with an exit code of 1
. I can get it to work without creationflags
being set but this doesn't work with my application.
I can get it to work without creationflags
being set but this doesn't work with my application.
proc = subprocess.call([
os.path.join(base_path, out_dir, 'python.exe'),
os.path.join(base_path, out_dir, 'get-pip.py')
], creationflags=0x00000008)
print(proc)
# outputs 1
User contributions licensed under CC BY-SA 3.0