February 14th, 2014, 12:56 PM
Help with PY2EXE
So I installed python on my windows machine, which I already don't like. But I did it because I need to convert my python program to a windows executable file. I included Python to my system path, so I am working from CMD.
I was trying to follow the very simple tutorial from the py2exe webpage and when I get to the step of creating the setup.py file, python just closes and it doesn't create the file, I dont get any error so I have no idea what's going on.
when I execute line 4, python closes and the file setup.py is not created.
1 from distutils.core import setup
2 import py2exe
February 19th, 2014, 10:19 AM
I decided to add more information of everything I am doing so people might be able to help.
I open cmd.
setup.py is not created, no error, cmd just closes... might this be an administrator rights issue????? thank you.
python hello.py (works)
from distutils.core import setup
February 19th, 2014, 10:39 AM
You need to actually create and save a file with those contents; not try to run it from the interactive interpreter.
Open your favorite code editing word-processor/IDE. IDLE will work fine if that is all you have. Create new file. Paste in the setup script. Save as setup.py.
Then open a command prompt. Navigate to that directory. And run:
python setup.py py2exe
February 19th, 2014, 10:51 AM
simple and makes rational sense.... Thank you.
Originally Posted by Mekire