PermissionError: [WinError 5] Access is denied python using moviepy to write gif
I've run into this as well, solution is usually to be sure to run the program as an administrator (right click, run as administrator.)
Sometimes it occurs when some installations are not completed correctly, the process is stuck, or a file is still opened. So, when you try to run the installation again and the installation requires deleting, you can see the aforementioned error. In my case, shutting down the python processes and command prompt utilization helped.