But you might have questions that why there is a build folder and one spec file and what are they responsible for. Now once you open this dist folder you will see the exe file that you can share with others without the need for source code. Step 5: Open the dist folder and there’s your exe file Once that folder is opened, right-click and select the option Open in Terminal. Here in our case, our attendance_management.py file is stored in a folder named attendance_management. This will help you to not worry about copying and pasting the path where your script is stored.
There are other ways of doing this but the best one is to open your folder in the terminal. Step 2: Now open the folder where your py file is stored and open that folder in terminal Step 1: Installation of pyinstaller using the following command: pip install pyinstaller Accordingly, Linux users will receive a standard executable, Mac users a bundle of. Additionally, PyInstaller may produce Windows, Linux, or macOS executables. There are many fascinating subtleties about PyInstaller, but for the time being, we’ll only cover the fundamentals of how it functions and how to utilize it. By introspecting your Python code, identifying your dependencies, and then packaging them into the appropriate format based on your Operating System, PyInstaller accomplishes this astounding accomplishment.
The user does not need to install any modules or a Python interpreter in order to launch the packed program. In this first method to convert py to exe file, a Python program and all of its dependencies are combined into one package by PyInstaller.