I've nearly finished my python project, and plan to maybe distribute it. But I don't want users to have to go to command prompt and type python foo.py. I don't mind having the user install python, but is there a way I can make an exe that just runs the python file with the interpreter? I've looked into py2exe and others but they are all incompatible with python 3, which I am using. What I want is the equivalent of a Java executable jar file. I also tried writing something in C but that didn't work very well either. Thanks in advance.

Recommended Answers

All 2 Replies

Until py2exe works with Python 3 you're out of luck... if you can get your users to install Python 3 then all they have to do is double click on the script to run it...

.. ohh I never realised you can click on the .py file.. thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.