How to create an executable file for Linux machine using Pyinstaller? How to create an executable file for Linux machine using Pyinstaller? tkinter tkinter

How to create an executable file for Linux machine using Pyinstaller?


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.