xxxxxxxxxx
pip install pyinstaller
pyinstaller yourprogram.py
xxxxxxxxxx
# Open Windows Command Prompt and install pyinstaller
pip install pyinstaller
# This will create a folder called dist that contains the executable file hello.exe.
pyinstaller hello.py
# This will create a single hello.exe file in the dist folder that contains all the necessary code and resources.
pyinstaller --onefile hello.py
# If you want to hide the console window when running the executable file.
pyinstaller --noconsole --onefile hello.py