| Start |
|---|
| Installation and Setup Pyinstaller is a normal python package. It can be installed using pip: Installation in Windows Installation in Mac OS X Installing from the archive Expand the archive and find the Verifying the installation |
| Using Pyinstaller In the simplest use-case, just navigate to the directory your file is in, and type:
Pyinstaller analyzes the file and creates:
The bundled app can be found in the dist folder Options Once bundled your app can be run by opening 'dist\myfile\myfile.exe'. |
| Bundling to One Folder When PyInstaller is used without any options to bundle One Folder mode can be explictly set using the option
Advantages:One of the major advantages of bundling to a single folder is that it is easier to debug problems. If any modules fail to import, it can be verified by inspecting the folder. DisadvantagesThe only disadvantage of this method is that the users have to search for the executable among a large number of files. |
| Bundling to a Single File
The options to generate a single file are Single file executable are slower than the one-folder bundle. They are also harder to debug. Syntax
RemarksPyInstaller is a module used to bundle python apps in a single package along with all the dependencies. The user can then run the package app without a python interpreter or any modules. It correctly bundles many major packages like numpy, Django, OpenCv and others. Some important points to remember:
Homepage (opens new window) Official Docs (opens new window) |
Read Article
https://develop.horje.com/learn/1434/reference