I am trying to make a win 10 executable (.exe) from my helloworld.py script. I have installed pyinstall-3.2 and following the install document isn't so easy.
Any help getting this working will be appreciated.
PyInstaller is located at:
helloworld.py and hellowworld.bat are both at:
Here is the Bat file
Any help getting this working will be appreciated.
PyInstaller is located at:
Quote:c:\pyInstaller-3.2
helloworld.py and hellowworld.bat are both at:
Quote:c:\users\michael\desktop\helloworld\
Here is the Bat file
python c:\pyInstaller-3.2\Makespec.py --onefile --console --upx --tk helloworld.py python c:\pyInstaller-3.2\PyInstaller\building\build_main.py helloworld.spec pauseHere is helloworld.py
#!/usr/bin/env python for i in xrange(1000): print "Hello, World!"Finally, here are the error messages:
Error:C:\Users\Michael\Desktop\helloworld>python c:\pyInstaller-3.2\Makespec.py --onefile --console --upx --tk helloworld.py
usage: Makespec.py [-h] [-D] [-F] [--specpath DIR] [-n NAME] [-p DIR]
[--hidden-import MODULENAME]
[--additional-hooks-dir HOOKSPATH]
[--runtime-hook RUNTIME_HOOKS] [--exclude-module EXCLUDES]
[--key KEY] [-d] [-s] [--noupx] [-c] [-w]
[-i <FILE.ico or FILE.exe,ID or FILE.icns>]
[--version-file FILE] [-m <FILE or XML>] [-r RESOURCE]
[--uac-admin] [--uac-uiaccess] [--win-private-assemblies]
[--win-no-prefer-redirects]
[--osx-bundle-identifier BUNDLE_IDENTIFIER]
[--log-level LEVEL] [--upx UPX]
scriptname [scriptname ...]
Makespec.py: error: argument --upx/-X/-K/--tk/-C/--configfile/--skip-configure/-o/--out/--buildpath: expected one argument
C:\Users\Michael\Desktop\helloworld>python c:\pyInstaller-3.2\PyInstaller\building\build_main.py helloworld.spec
Traceback (most recent call last):
File "c:\pyInstaller-3.2\PyInstaller\building\build_main.py", line 27, in <module>
from .. import HOMEPATH, DEFAULT_DISTPATH, DEFAULT_WORKPATH
ValueError: Attempted relative import in non-package
C:\Users\Michael\Desktop\helloworld>pause
Press any key to continue . . .