Python Forum
Trouble making my first python .exe using pyinstaller.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trouble making my first python .exe using pyinstaller.
#3
I got stuck on the second step.

here is the activity and error
c:\Users\Michael\Desktop\helloworld>dir
Volume in drive C is OS
Volume Serial Number is A2D2-EFB5

Directory of c:\Users\Michael\Desktop\helloworld

12/08/2016  05:06 PM    <DIR>          .
12/08/2016  05:06 PM    <DIR>          ..
12/08/2016  03:20 PM               169 helloworld.bat
12/08/2016  02:43 PM                76 helloworld.py
12/08/2016  05:06 PM                 0 pyinstaller
              3 File(s)            245 bytes
              2 Dir(s)  709,115,584,512 bytes free

c:\Users\Michael\Desktop\helloworld>pyinstaller --onefile --console --upx --tk helloworld.py
usage: pyinstaller [-h] [-v] [-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]
                  [--distpath DIR] [--workpath WORKPATH] [-y]
                  [--upx-dir UPX_DIR] [-a] [--clean] [--log-level LEVEL]
                  [--upx UPX]
                  scriptname [scriptname ...]
Error:
pyinstaller: error: argument --upx/-X/-K/--tk/-C/--configfile/--skip-configure/-o/--out/--buildpath: expected one argument c:\Users\Michael\Desktop\helloworld>
Reply


Messages In This Thread
RE: Trouble making my first python .exe - by Yoriz - Dec-08-2016, 10:00 PM
RE: Trouble making my first python .exe - by PickyBiker - Dec-08-2016, 11:10 PM
RE: Trouble making my first python .exe - by Yoriz - Dec-08-2016, 11:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Trouble with installing python domingo251 2 681 Sep-23-2023, 12:03 AM
Last Post: ICanIBB
  Pyinstaller 3 Python 2 mckymntl 0 1,282 Feb-07-2022, 06:28 AM
Last Post: mckymntl
  making variables in my columns and rows in python kronhamilton 2 1,713 Oct-31-2021, 10:38 AM
Last Post: snippsat
  Python 3.7, Windows 10, pyinstaller, winsound, no sound in executable kmarien 3 3,804 Nov-30-2020, 04:10 PM
Last Post: buran
  New to python, having trouble with an exercise Salkay 3 2,263 Feb-18-2020, 01:42 AM
Last Post: Salkay
  Cannot Change Python script to exe using Pyinstaller omar_mohsen 3 2,487 Dec-19-2019, 01:05 PM
Last Post: buran
  More Python Embedding Trouble jibarra 3 3,028 Jul-11-2019, 09:25 PM
Last Post: Gribouillis
  Making a generalised CSV COPY script in Python Sandy7771989 3 2,503 Jul-05-2019, 11:02 PM
Last Post: Larz60+
  Error with using pyinstaller to convert python script in Mac OS Takeshio 2 5,526 Oct-19-2018, 02:42 PM
Last Post: Takeshio
  Trouble making an argument optional linuxnoob 2 3,007 Aug-31-2018, 01:52 AM
Last Post: linuxnoob

Forum Jump:

User Panel Messages

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