Converting Python file to EXE | Using pyinstaller Package | Computer Tips

Published: 29 January 2023
on channel: Tiny Tips
1,351
21

In this video, I have shown how to convert a python (.py) file to an executable (.exe) file. The python file used in this video is our project on recovering stored wifi SSID credentials from a Windows system. So, the output is a console window where all SSID names with their credentials will be displayed, if there are any.
I have used, pyinstaller package for creating an executable file. The executable created is standalone in nature. It means that one doesn't need to have python or any other dependencies installed on a system to use the executable.
I have also covered the installation of "python" as well as "pip". A problem that may arise with respect to setting the path variable in environment variables is also looked upon.
The video is very simple and easy to follow. I hope it is able to convey the information to the viewer as easily as possible.

Thank you.

Resources:

1. Location to download python:
https://www.python.org/downloads/

2. Current user default installation location for python:
C:\Users\YOUR_USERNAME\AppData\Local\Programs\Python\PYTHON_FOLDER_AS_PER_VERSION

3. Python Installation location for all users:
C:\Program Files\PYTHON_FOLDER_AS_PER_VERSION

4. Command to check the version of python:
python --version

5. The commands used in the video to install pip:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py

6. Location of manually saving get-pip.py file
https://bootstrap.pypa.io/get-pip.py

7. Command to install pyinstaller package
pip install pyinstaller

8. Command to create exe from python file
pyinstaller --onefile python_file.py

9. Link to my videos on:
Creating python code to recover saved SSID credentials:
Part I -    • Writing Python Code to recover all your st...  
Part II -    • Writing python code to recover all your st...  
GitHub repository - https://github.com/tinytips4u/Python2Exe


On this page of the site you can watch the video online Converting Python file to EXE | Using pyinstaller Package | Computer Tips with a duration of hours minute second in good quality, which was uploaded by the user Tiny Tips 29 January 2023, share the link with friends and acquaintances, this video has already been watched 1,351 times on youtube and it was liked by 21 viewers. Enjoy your viewing!