Reputation: 53
How to change python code to .exe file using microsoft Visual Studio 2015 without installing any package? Under "Build" button, there is no convert to .exe file.
Upvotes: 1
Views: 15497
Reputation: 96
As said in this thread you in contrast to C# there is no .exe file in the folder. You will need to make one yourself. I am using pyinstaller, which is easy to use. Read how to use here: Pyinstaller documentation. My favourite attributes are -F(one file executable) and for GUI apps --noconsole(won't show console when the app is running).
Upvotes: 2
Reputation: 9491
Python is a dynamic language (executed by interpreter) and cannot be compiled to binary. (Similar to javascript, php and etc.) It needs interpreter to execute python commands. It's not possible to do that without 3rd party tools which translates python to another languages and compile them to exe.
Upvotes: 2