Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PyInstaller
#2
My speculation is that you are using Windows. From the command line you can run PyInstaller in either of two ways:

a. The Kitchen sink method which is probably not what you want (includes a lot of files):

PyInstaller abc.py

This creates a subfolder named 'abc' in the 'dist' subfolder. You must create a zip file of the 'abc' subfolder. The zip file is what you distribute.

b. The one file method:

PyInstaller -F abc.py

This creates file 'abc.exe' in the 'dist' subfolder. The only file you have to distribute is 'abc.exe'.

------------------------
For more information see the 'Bundling to One Folder' section and the 'Bundling to One File' section in https://pyinstaller.readthedocs.io/en/st...-mode.html


Lewis
To paraphrase: 'Throw out your dead' code. https://www.youtube.com/watch?v=grbSQ6O6kbs Forward to 1:00
Reply


Messages In This Thread
PyInstaller - by jure98 - Mar-30-2018, 05:39 PM
RE: PyInstaller - by ljmetzger - Mar-30-2018, 07:18 PM
RE: PyInstaller - by jure98 - Mar-31-2018, 12:00 AM

Forum Jump:

User Panel Messages

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