mickeymouse
mickeymouse

Reputation: 53

How to change python to .exe file in visual studio

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

Answers (2)

Matěj Mudra
Matěj Mudra

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

Access Denied
Access Denied

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

Related Questions