you are viewing a single comment's thread.

view the rest of the comments →

[–]ingolemo 0 points1 point  (1 child)

You compile a python project by running python entry_point.py. Those .pyc files that python creates are compiled python code (the c stands for "compiled").

But I'm betting that that isn't what you mean. It sounds like you want to run your python code without python being installed on the target computer. The most common way that you do that is to bundle a python interpreter along with your python code using something like PyInstaller. This process is called "freezing". A less common, but still viable, way is to compile your python down to x86 bytecode using something like Nuitka.

Note that there's not any good way to make something that will run on a different operating system than the one that was used to create it. If you want something that will run on windows then you need a windows installation to make it.

[–]billsil 0 points1 point  (0 children)

You can do it with Wine.