I want to convert Python code to executable file which can run on any machine without Python to be installed. pygui.py is Python file name
pyinstaller.exe pygui.py
I have try the above code but instead of executable file i got .pyc file
I want to convert Python code to executable file which can run on any machine without Python to be installed. pygui.py is Python file name
pyinstaller.exe pygui.py
I have try the above code but instead of executable file i got .pyc file
The .pyc file is your executable file. It's not a .exe file, but it is compiled code. It will run. See the pyinstaller manual for more information about Compiled Python code.
PyInstaller should create a dist
folder where your executable file is and all other files that need to be included in your distribution. Check out the docs here.
It could be that PyInstaller failed somehow. You'll have to read all of the lines in the output to get an idea of what went wrong.