Python Forum

Full Version: PyInstaller
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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
Thank you very much!