r/pythonhelp • u/Dazzling_Guard_5191 • Sep 17 '21
Is there a way to run your code?
If you made a project on Python and you want to be able to run the code on another electric without installing Python what would be the best way of doing that? Duse it have to be a game or can it be just raw code that you can run?
2
Upvotes
1
4
u/[deleted] Sep 17 '21 edited Sep 17 '21
While there are some compilers that can turn python into raw machine code, python is not the best language for portability. If you're interested in one of these compilers, https://www.py2exe.org/ is probably the best known one. Good Luck!
Edit: as kokoseig pointed out below, these do not compile python. Read their comment for more detail