firewave <olive...@online.de> added the comment:
I figured it out. I tried to delete the files using PowerShell and I got the following: Remove-Item : Cannot remove item C:\Users\Username\AppData\Local\Microsoft\WindowsApps\python.exe: The process cannot access the file 'C:\Users\Username\AppData\Local\Microsoft\WindowsApps\python.exe' because it is being used by another process. Using the "Resource Monitor" via the "CPU" tab and "Associated Handles" I was able the process which was using those. Somehow the handle search in "Process Explorer" was not returning this. After closing the process I was able to remove the files and install Python again. So it is exactly as I suspected before. When an update/uninstall is performed and the files are in use they cannot be updated/removed. It should probably check this early and fail in case the files are in use so it doesn't perform a partial operation leaving the app unusable/not installable. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45789> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com