I know this is old and whatnot (and not exactly sure if it’s a question), but after searching, I had success with this command for --onefile
:
pyinstaller.exe --onefile --windowed --icon=app.ico app.py
Google led me to this page while I was searching for an answer on how to set an icon for my .exe, so maybe it will help someone else.
The information here was found at this site: https://mborgerson.com/creating-an-executable-from-a-python-script
Related Posts:
- How can I make a Python script standalone executable to run without ANY dependency? [duplicate]
- How can I make an EXE file from a Python program?
- How to use pyinstaller?
- Running an outside program (executable) in Python?
- Windows- Pyinstaller Error “failed to execute script ” When App Clicked
- how to build .exe for python 3.5+, 3.6 if possible?
- How do I lowercase a string in Python?
- Difference between del, remove, and pop on lists
- How to use the pass statement
- How do you round UP a number?
- How do I update\upgrade pip itself from inside my virtual environment?
- ImportError: DLL load failed: The specified module could not be found
- What is the pythonic way to calculate dot product?
- How to resize an image with OpenCV2.0 and Python2.6
- Is there a ‘foreach’ function in Python 3?
- How to condense if/else into one line in Python?
- Depth-first search (DFS) code in python
- How to use Python to execute a cURL command?
- What does %s mean in a python format string?
- Redirecting to URL in Flask
- TypeError: ‘float’ object is not callable
- Plotting a 2D heatmap with Matplotlib
- Purpose of __repr__ method?
- json.dumps vs flask.jsonify
- How to print like printf in Python3?
- “Defaulting to user installation because normal site-packages is not writeable” python message
- How do I check whether a file exists without exceptions?
- How can I get dictionary key as variable directly in Python (not by searching from value)?
- pygame.error: video system not initialized
- Python – Reading and writing csv files with utf-8 encoding
- Python’s equivalent of && (logical-and) in an if-statement
- Replace values in list using Python
- Trouble updating to Anaconda Navigator 1.10.0 (MacOS)
- Binary numbers in Python
- Django: ImproperlyConfigured: The SECRET_KEY setting must not be empty
- builtins.TypeError: must be str, not bytes
- How do you read from stdin?
- takes 1 positional argument but 2 were given
- What is dtype(‘O’), in pandas?
- Call a function from another file?
- What’s the difference between %s and %d in Python string formatting?
- What is the difference between Jupyter Notebook and JupyterLab?
- keyerror 1 in my code
- ‘NoneType’ object has no attribute ‘group’
- How to fix ‘ValueError: list.remove(x): x not in list’ error in Python
- Group by index + column in pandas
- Why am I getting a FileNotFoundError?
- Anaconda Navigator won’t launch (windows 10)
- What are all possible pos tags of NLTK?
- Can’t open Jupyter notebook with Anaconda
- How to change dataframe column names in pyspark?
- Pickle , read in data , unsupported pickle protocol: 3 python 2.7
- pygame clock.tick() vs framerate in game main loop
- How to import a module given the full path?
- Why does “pip install” inside Python raise a SyntaxError?
- Removing numbers from string
- importing external “.txt” file in python
- How can I remove Nan from list Python/NumPy
- How to implement a binary search tree in Python?
- TypeError: cannot unpack non-iterable NoneType object
- Search and replace a line in a file in Python
- Can’t import my own modules in Python
- What are the most common Python docstring formats?
- How do I install a pip package globally instead of locally?
- Python Array Rotation
- Can’t find module cPickle using Python 3.5 and Anaconda
- How can I check if two segments intersect?
- “Can’t convert ‘float’ object to str implicitly”
- Why I get ‘list’ object has no attribute ‘items’?
- tar: Unrecognized archive format error when trying to unpack flower_photos.tgz, TF tutorials on OSX
- Repeating a function in Python
- How can I convert a .py to .exe for Python?
- How do I make a dictionary with multiple keys to one value?
- Directing print output to a .txt file
- ImportError: No module named mysql.connector using Python2
- Python read in string from file and split it into values
- range() for floats
- import pandas_datareader gives ImportError: cannot import name ‘is_list_like’
- How does tuple comparison work in Python?
- AttributeError: ‘float’ object has no attribute ‘split’4
- How to add pandas data to an existing csv file?
- How does str(list) work?
- Automatic indentation for Python in Notepad++
- How to make a python script wait for a pressed key?
- TypeError: Image data can not convert to float
- Mean Squared Error in Numpy?
- Turn a single number into single digits Python
- Is there a head and tail method for Numpy array?
- What should I use to open a url instead of urlopen in urllib3
- How to find out whether a file is at its `eof`?
- TypeError: Image data can not convert to float
- Create a list with initial capacity in Python
- Accessing dict_keys element by index in Python3
- How to update Pandas from Anaconda and is it possible to use eclipse with this last
- Does python support character type?
- Styling multi-line conditions in ‘if’ statements?
- What is related_name used for?
- Symbol not found: __PyCodecInfo_GetIncrementalDecoder
- How can I tail a log file in Python?
- How to write unicode strings into a file?