问题 I tried to make a standalone executable of my python script with auto-py-to-exe , it basically provides easy interface for creating executable with pyinstaller, so I made my python script's exe, it's console based and when I try to run the exe that I made of my script, then console opens up for a second a closes with bunch of errors quickly. However, the script runs fine in idle. I had attached a screenshot of the error I received. As per my observations most probably the error is occurring