#Convert .py to .exe don't use python ver 3.9 will not work recomment 3.8:
pip install pyinstaller
#to convert to a simple exe file the exe file will be in your dist folder
pyinstaller 'fileName.py'
#to convert to a onefile exe file the exe file will be in your dist folder
pyinstaller --onefile 'fileName.py'
to convert to a onefile exe file and the python window will not appear
pyinstaller -w --onefile 'fileName.py'
pip install -U pyinstaller
# Open a command prompt/shell window
# Navigate to the directory where your .py file is located
# then build your app with the following command:
pyinstaller --onefile your_program.py
python -m pip install auto-py-to-exe then run it using python -m auto_py_to_exe
$ pip install auto-py-to-exe
pyinstaller your_program.py
cd C:UsersRonDesktopMyPython