
Ich habe da zu Hause den Pythoncompiler py2exe, aber ich weis nicht wie ich nun compilieren soll.



Code: Alles auswählen
# setup.py
from distutils.core import setup
import py2exe
setup(name="myscript",
scripts=["myscript.py"],
)
Code: Alles auswählen
python setup.py py2exe
Code: Alles auswählen
# setup.py
import py2exe
from distutils.core import setup
setup(name="primzahl",
scripts=["primzahl.py"],
)
Code: Alles auswählen
scripts=["primzahl.py"],
#muss das komm sein oder sollte des so aussehen?
scripts=["primzahl.py"]
Code: Alles auswählen
python -d setup.py py2exe
wenn wenn ich danacht z.B. python setup.py py2exe eingebe kommt dieser fehler mit dem setup rot hinterlegt..Traceback (most recent call last):
File "C:\Python22\setup.py", line 6, in ?
scripts=["primzahl.py"]
File "C:\Python22\lib\distutils\core.py", line 125, in setup
raise SystemExit, \
SystemExit: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: no commands supplied
Code: Alles auswählen
setup(name="primzahl", scripts=["primzahl.py"])