The file called myscript.spec is useful to customize the way PyInstaller packs your application. The dist folder stores the executable and all of the files needed in order to run that executable. The build folder is used by PyInstaller as a temporary folder to create the files needed for the executable. Then, in order to create the executable just run python pyinstaller.py myscript.py and you will see a lot of output and a folder called myscript will be created, with two folders and a file inside. Now suppose you want to package myscript.py, I saved it into the pyinstaller folder: To get started, open a Command Prompt (Windows) or a Terminal (Mac and Linux) and go to the PyInstaller Folder. So there is no need to install it in your computer. PyInstaller is an application, not a package. To start, download and extract PyInstaller from the official site. PyQt, Django and matplotlib are fully supported. PyInstaller claims to be compatible with a lot of third party libraries or packages out of the box. PyInstaller currently only works with Python 2.3 up to 2.7. It is an excellent option when you need to distribute a program to the end user as a standalone application. PyInstaller allows you to run applications written in Python on a computer without requiring the user to install Python. PyInstaller is a program used to convert Python scripts into standalone applications. Last Updated: Wednesday 29 th December 2021
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |