Skip to content

Commit 50b4952

Browse files
authored
Update README.md
1 parent 4f8a70a commit 50b4952

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,16 @@ Here's a brief overview of the process:
7777

7878
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.
7979

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.
89+
8090
# Contact
8191
Nickolas Rodriguez | Twitter: @\_Nick_Rod_ | Email: Nickolasrodriguez98@gmail.com | GitHub: Nick-prog
8292

0 commit comments

Comments
 (0)