0

I am trying to convert my python file into a .exe, and I found out about pyinstaller. I ran in the command prompt:pip install pyinstaller. After a few seconds, the last line said something like "pyinstaller was successfully installed" then when I am running just "pyinstaller" in the command prompt, it prints "failed to create process.". I tried running it in the directory with the scripts, I tried doing "pyinstaller myprogram.py" in the directory of my program. I even went to windows 10, "Advanced system settings" and added the directory of my python scripts, but it always returns this "failed to create process." I looked at other questions in stackoverflow. I even looked at the first lines of scripts of the pyinstaller but they already had quotes, so I do not know what is wrong. Any reply would be appreciated.

2 Answers 2

1

It seems that this is a known issue with cx_Freeze which has been resolved in the source. It will be fixed in the new release (5.1.1)

Sign up to request clarification or add additional context in comments.

Comments

0

I had the same issue so I checked the file

C:\Python27\Scripts\pyinstaller-script.py

and there was an old python path which when I installed python installer

C:\Python27\python.exe

But later I renamed python.exe --> python2.exe, so I just changed the path

C:\Python27\python.exe --> C:\Python27\python2.exe

in file

C:\Python27\Scripts\pyinstaller-script.py

and it worked perfectly.
I would also suggest check you environemnt variables too carefully.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.