Hi
Excuse me but i came again
Can someone learn me how to work with py2exe?
thanks

Recommended Answers

All 3 Replies

I think I posted somewhere GUI versions and If not mistaken, ene posted the coding version. Try to search the forum

I'll assume you have already read the tutorial at:

http://www.py2exe.org/index.cgi/Tutorial

basically, once you have py2exe installed you need to make a script to build the exe. Make a file called setup.py in the directory with the python file you want to make an exe out of. put the following inside setup.exe:

from distutils.core import setup
    import py2exe
    
    setup(console=['yourscript.py'])

replacing yourscript.py with your scripts name.

then run it from the command line with

python setup.py py2exe

If it completes succesfully you should now have an exe in your folder.

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.