Doesn't work well with Python 3.10.0 ??? Works fine with Python 3.10.4
pip install pyinstaller
pyinstaller --onefile main.py
pip install auto-py-to-exe
auto-py-to-exeOR (other option)
auto-py-to-exe -i -o output.exe filename.py
Options to design an icon: Inkscape To generate an icon go to convertico.com
Click > Add Files (*.py files and not py files).
select output folder
Open the output folder. Run exe file.