I am a beginner at python programming and I am facing a minor issue. I created a pygame called "Dino Rush" which works perfectly on PyCharm.
I used pyinstaller to convert my .py file to .exe file. I followed all the steps mentioned in this video.
Please have a look at this video and tell me why it won't work for me.
By following these steps, an executable file is created but it gives the error "Failed to execute script dino_rush ".
PS If it helps, I use python version 3.8, PyCharm version 2019.3 Community edition, pip version 20.0.2 and i have imported the following modules in my code : pygame, random, math, os.
If you don't find this method good enough, then please suggest any other method to help me in converting my file to .exe. I am just a beginner and I would appreciate any kind of help.