Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PyInstaller
#1
Hi guys

I'm use Pyinstaller to convert my .py to .exe ,and all works.I just have an question. Which files I need to upload so that I can run it on other computers(Which don't have python) ?

http://prntscr.com/iym61b

Or I need all files?
Reply
#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
#3
Thank you very much!
Reply


Forum Jump:

User Panel Messages

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