Python Forum

Full Version: py2exe
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
I am trying to use py2exe.
I have already have my python file as well as the setup file for it which goes like this:
from distutils.core import setup
import py2exe

setup (console=['test.py'])
This doesn't seem to be the problem, however I have read that the next step is to run a command on command prompt
setup.py py2exe
But when I do this it says:
'setup.py' is not recognized as an internal or external command,
operable program or batch file.
Did you try like this?

$ python setup.py py2exe
The problem with py2exe that's it not updated anymore(latest release Oct 21, 2014).
To use with Python 3 has to use version 3.4(or lower) or python 2.

Pyinstaller work 2.7 or 3.4-3.7.
Thank you for your time but it still has not worked. All it says is:
'$' is not recognized as an internal or external command,
operable program or batch file.

I will keep surfing the web to see if I can find a solution.
Thank You.
$ stands for the prompt for linux. It is not part of the command.
you need something like
C:/path-to-your-script>python setup.py py2exe

where C:/path-to-your-script> is the command prompt and not part of the command itself