How to create EXE's from Python!

EXE's from python??

That's Right EXE's from Python! And it is really simple too! Why would you want to? Because now-a-day's everyone wants to download exe's and run them in order to play games not download python then your source file and run it.

Okay... What's the catch?

There is none. Create your

Then run it to be sure it works. If it does now we can build it as an exe. All we have to do is use pip to install pyinstaller

This will install pyinstaller along with all of it's dependencies. Also note, that pyinstaller only makes an exe based on the os it is on. For example: If I build an exe on windows I can not use it on Mac.
Now once pyinstaller is installed, go to the directory of your file using cmd prompt or bash and use this code:

What this will do is bundle everything into one exe file in a folder called dist. Open the folder once it's done and run the exe and you will get your python code run!

You are viewing a single comment. View All

@DSAJagat20 It was a living nightmare but I coded the bare minimum with my phone XD Here's the program link, just copy paste your code into