How to convert Python code to executable?

306 Views Asked by At

So I have a python code now that I want other folks to use. They don't have Python installed on their computers. I have seen people convert their code to .exe so others can use it even if they don't have Python on their machines.

How can I do this? Is there a special software needed for this?

Thank you

1

There are 1 best solutions below

5
On

Use the pyinstaller library. Then you can create the file with

pyinstaller --onefile yourFileName.py