Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
py2exe
#1
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.
Reply
#2
Did you try like this?

$ python setup.py py2exe
Reply
#3
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.
Reply
#4
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.
Reply
#5
$ 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
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] Py2exe Writing UNKNOWN-0.0.0-py3.7.egg-info sarahroxon7 1 908 Apr-20-2022, 08:02 AM
Last Post: VadimCr
  Py2exe and pycryptodome reks2004 5 4,094 Dec-16-2020, 06:42 PM
Last Post: reks2004
  Py2exe Writing UNKNOWN-0.0.0-py3.7.egg-info Rickus 2 3,607 Feb-18-2020, 03:09 PM
Last Post: Rickus
  py2exe failed to compiled gahhon 9 7,363 Mar-04-2019, 03:29 AM
Last Post: gahhon
  How would I combine multiple .py files into one .exe with Py2Exe shlomi27 0 3,066 Aug-20-2018, 10:27 AM
Last Post: shlomi27
  jira-2.0.0.dist causing error with py2exe johnlawlor 1 2,483 Aug-09-2018, 08:27 PM
Last Post: Larz60+
  can not open .exe file generated by py2exe: ImportError: cannot import name _remove_d py2exe 0 2,697 May-22-2018, 09:57 AM
Last Post: py2exe
  trouble with pip and py2exe sylas 12 13,623 Sep-17-2017, 06:38 AM
Last Post: sylas
  Convert py2exe daltorya19 6 5,320 May-28-2017, 11:48 PM
Last Post: daltorya19
  Py2EXE: terminal window closes after pressing ENTER peanutbutterjelly 1 5,052 May-06-2017, 07:13 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020