Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

after pyinstaller to an exe tool, always pop up a cmd window when double-click the tool #235

Closed
etiaxie opened this issue Dec 28, 2017 · 6 comments

Comments

@etiaxie
Copy link

etiaxie commented Dec 28, 2017

how can make the tool not to show the cmd-line window
my pyinstaller cmd is “pyinstaller -F xxx.spec”

@etiaxie
Copy link
Author

etiaxie commented Dec 28, 2017

my spec:
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)

options = [('u', None, 'OPTION'), ('u', None, 'OPTION'), ('u', None, 'OPTION')]

exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
options,
gooey_languages, # Add them in to collected files
gooey_images, # Same here.
name='main_actions_cloud2',
debug=False,
strip=None,
upx=True,
windowed=True,
icon=os.path.join(gooey_root, 'images', 'lugi.ico'))

@xavierskip
Copy link

pyinstaller -F -w xxx.py
or change your xxx.spec
windowed=True < console=False

@etiaxie
Copy link
Author

etiaxie commented Jan 4, 2018

i changed windowed=True to console=False and build again,the exe will raise error when run it

@xavierskip
Copy link

do you watch any error or warning in the console?
otherwise you can try turn upx=False.

@chriskiehl
Copy link
Owner

Closing. There's an open Pyinstaller issue (#58) with tons of details. I'd move any discussion to that topic

@yashinshekh
Copy link

use --noconsole

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants