I have written a small GUI Desktop application using python on Ubuntu 14.04(64-bit). I wanted an executable version of my code so it can run on other linux machines. I was able to create executable for Windows and Mac. But on Linux the created binary file does not work.
For windows: the command i used to make the code executable was
pyinstaller -D -F -n main -w "main.py"
this worked fine on other windows(64-bit) machine too.
For mac:
pyinstaller --windowed "main.py"
Worked fine.
for linux: i tried
pyinstaller main.py
as well as
pyinstaller -D -F -n main -w "main.py"
im unable to open the binary file
i tried changing the permissions using chmod
, still the same error.
I am using:
I tried in my Ubuntu:
pyinstaller -D -F -n main -c "main.py"
and it created a working binary.
pyinstaller 2.1 was the problem. Installing dev
version of pyinstaller(version 2.1.1dev-
) worked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With