How to create a Executable for .py file? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to create a Executable for .py file?

How do I convert a Python Program (.py file) into a Windows Executable (.exe file) so that it runs on both 32-bit and 64-bit systems. I have tried PyInstaller, but the .exe file created on 64-bit machine does not work on 32-bit machine. What do I do?

9th Mar 2019, 4:06 PM
Shreyas Sable
Shreyas Sable - avatar
3 Answers
+ 4
There is a tool called py2exe. Check it out
9th Mar 2019, 4:17 PM
Seniru
Seniru - avatar
+ 1
pip install pyinstaller pyinstaller Yourfile.py
9th Oct 2021, 5:11 AM
Sancho Godinho
Sancho Godinho - avatar