Thank you! I too used pyinstaller. Perhaps we were using different versions of pyinstaller or more probably different compiler flags. Anyways thank you for playing.
i used pyinstaller in cmd typed in: pyinstaller --onefile -w equations_and_shapes.py
Version: PyInstaller: 4.9
I've set the same compiler flags, but I have PyInstaller 5.1