Reputation: 685
I want to turn python files into .exe files but I can't. I have installed py2exe when I run the program setup.py on the windows command prompt with that command line
python setup.py py2exe
I get the following error message:
no module named py2exe
Upvotes: 0
Views: 691
Reputation: 6305
To quote the py2exe tutorial:
"py2exe" is a new Distutils command that is added when you import py2exe. To use py2exe you need to create a setup.py file to tell Distutils and py2exe what you want to do. Here's a setup.py whose simplicity is appropriate for our sample program...
So their example setup.py script is:
from distutils.core import setup
import py2exe
setup(console=['hello.py'])
Which can be built with
python setup.py py2exe
So I think you are just missing the import. Post your full setup.py if this is not the case so we can debug.
Upvotes: 4