PermissionError: [Errno 13] Permission denied

Last Updated On Wednesday 27th Oct 2021

PermissionError: [errno 13] permission denied:

This happens if you are trying to open a file, but your path is a folder.

This can happen easily by mistake.

There are basically three main methods of achieving administrator execution privileges on Windows.

A) Running cmd.exe as and admin

Since in Windows there is no sudo command you have to run the terminal (cmd.exe) as an administrator to achieve to level of permissions equivalent to sudo. You can do this two ways:

permissionerror errno 13 permission denied

B) Creating shortcut with elevated privileges