Search code examples
python-3.xwindowstkinterpython-3.7autopy

How to delete an auto py to exe executable file?


I have made a exe file with auto py to exe. But when I opened it I have some problems. So I decided to delete it. But when I am selecting the file and pressing SHIFT+DEL, then it would say it is open in another exe program. Can someone say a solution?Click here please


Solution

  • Try opening task manager, and closing all the task except the task manager itself. Then attempt the deletion.

    There are some background process of the python interpreter which keep running even after the app finishes executing.

    I've observed this happening with some of the IDEs (like thonny) and editors as well who sometimes won't close out the connections to the files.

    That's one of the reasons we have try-finally blocks in python.