Pyinstaller error: failed to create process

When you try to compile your scripts into an executable file, pyinstaller gives the following error message: failed to create process.

Typically, this happens when it is installed in a directory that has space. Example: C:\Program Files\…

To solve this issue, go to the directory where the pyinstaller is installed (C:\Program Files (x 86) \Python35-32\Scripts\) and edit the pyinstaller-script.py file.

The first lines will be similar to these:

Add quotes to the first line, like this:

Save the file and try again.

 

*Update: September 5th, 2018*

I have installer Python on a brand new Windows 10 machine and I got this error. When i checked pyinstaller-script.py, the path was already between double quotes.

To solve this, what I did was simple: Reinstalled pyinstaller. Yep, that worked with no side-effects whatsoever.

If you want to try this, here’s the commands:

 

 

The following two tabs change content below.
Breno RdV
Please allow me to introduce myself...I'm a former psychologist, with almost a decade worth of experience in Human Resources and People Management. Now a developer/software analyst working with PowerBuilder, C#, PowerShell and currently expanding to the world of Python, Xamarin, PHP Angular and (why not?) Unity.

Comments

comments

Posted in Dev, Python and tagged , , , , .