How To Create Executable of Your Python Application For Linux - Windows - Mac - by Ganesh Chandrasekaran - Analytics Vidhya - Medium
How To Create Executable of Your Python Application For Linux - Windows - Mac - by Ganesh Chandrasekaran - Analytics Vidhya - Medium
lytics Vidh…
Member-only story
78 1
https://medium.com/analytics-vidhya/how-to-create-executable-of-your-python-application-from-linux-windows-mac-bcbcdd4603d4 1/8
9/6/24, 4:14 PM How to create executable of your Python application for Linux / Windows / Mac | by Ganesh Chandrasekaran | Analytics Vidh…
Step 1 : Make sure python3 development libraries are available (Linux users)
https://medium.com/analytics-vidhya/how-to-create-executable-of-your-python-application-from-linux-windows-mac-bcbcdd4603d4 2/8
9/6/24, 4:14 PM How to create executable of your Python application for Linux / Windows / Mac | by Ganesh Chandrasekaran | Analytics Vidh…
pyinstaller --version
The installer will collect -> build -> generate the executable.
https://medium.com/analytics-vidhya/how-to-create-executable-of-your-python-application-from-linux-windows-mac-bcbcdd4603d4 3/8
9/6/24, 4:14 PM How to create executable of your Python application for Linux / Windows / Mac | by Ganesh Chandrasekaran | Analytics Vidh…
cd ./yourfolder/dist/
(Windows users)
cd .\yourfolder\dist\
c:\yourfolder\yourfile.exe
$ ./yourfile
Note 1 : This executable can be invoked via Cronjobs / Task Scheduler or DAG
tools like Apache Airflow.
Note 2 : This article has the basic method, but pyinstaller has lot of features
which can be reviewed here.
https://medium.com/analytics-vidhya/how-to-create-executable-of-your-python-application-from-linux-windows-mac-bcbcdd4603d4 4/8
9/6/24, 4:14 PM How to create executable of your Python application for Linux / Windows / Mac | by Ganesh Chandrasekaran | Analytics Vidh…
Big Data Solution Architect | Adjunct Professor. Thoughts and opinions are my own
and don’t represent the companies I work for.
https://medium.com/analytics-vidhya/how-to-create-executable-of-your-python-application-from-linux-windows-mac-bcbcdd4603d4 5/8
9/6/24, 4:14 PM How to create executable of your Python application for Linux / Windows / Mac | by Ganesh Chandrasekaran | Analytics Vidh…
See all from Ganesh Chandrasekaran See all from Analytics Vidhya
Lists
Staff Picks
727 stories · 1277 saves
https://medium.com/analytics-vidhya/how-to-create-executable-of-your-python-application-from-linux-windows-mac-bcbcdd4603d4 7/8
9/6/24, 4:14 PM How to create executable of your Python application for Linux / Windows / Mac | by Ganesh Chandrasekaran | Analytics Vidh…
https://medium.com/analytics-vidhya/how-to-create-executable-of-your-python-application-from-linux-windows-mac-bcbcdd4603d4 8/8