Anton
Anton

Reputation: 3

Python create exe file error

I'm trying to create a exe file from my .py file but using both, PYINSTALLER and PY2EXE gives me a strange error:

create EXE error

The google.py file that I'm tying to create EXE existis in the requested directory and both PYINSTALLER and PY2EXE are correctlly installed.

Does anyone know the root cause of the issue? How could I create a exe file from a .PY?

Upvotes: 0

Views: 1589

Answers (1)

maxrt
maxrt

Reputation: 19

As I know you must use argument --onefile Without it the libraries will be distributed as separate file along with the executable. Here is exaple:

pyinstaller --onefile script.py

Upvotes: 2

Related Questions