just use pyinstaller to convert your source code to exe -
install pyinstaller using this command in CMD -
pip install pyinstaller
Navigate to Your Script's Folder using cd and path in CMD
When you are at folder of your source code in cmd run this command - (change game.py to what your .py file is called)
pyinstaller --onefile game.py
Locate the Executable: After running the command, PyInstaller will create a dist
folder in the current directory. Inside the dist
folder, you'll find the game.exe file.