You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,16 @@ Here's a brief overview of the process:
77
77
78
78
The detailed instructions provided in the [Publish Python Apps] guide will walk you through each step, enabling you to successfully create a standalone executable from your Python script.
79
79
80
+
Alternatively, you could package the program with less dependencies by following these steps:
81
+
82
+
1.**Install PyInstaller and Pipreqs**: Open a terminal or command prompt and use pip to install the library pyinstaller and pipreqs (> pip install ...).
83
+
84
+
2.**Create Requirements.txt**: Create a `requirements.txt` file in the same directory as your Python script. This will be done with the pipreqs library (> pipreqs .).
85
+
86
+
3.**Package and Create your executable**: Build your package in a dist folder generated in your Python script directory with the main.py file (> pyinstaller main.py).
87
+
88
+
The program should be packaged within minutes and be made in a much smaller exectuable file located in the dist folder of your program.
0 commit comments