Python error: permissionerror: [errno 13] detailed explanation of permission denied solution

Error information

In the process of using Python to do data set, the following error is reported:

Cause of error

The error is translated as follows:

Permission error: [errno 13] permission denied:

The cause of the error is that the file cannot be opened. The possible cause is that the file cannot be found, or it is occupied, or it has no permission to access, or it is not a file but a directory that is opened.

 

 

Solution

The solution is as follows:

1. Check whether the file in the corresponding path exists and is occupied. If the file does not exist, the corresponding file can be found; if the file exists and is occupied, the occupied program will be closed temporarily.

2. Modify the permission of CMD to run as an administrator.

3. Check whether the folder is open. ——Check whether other software is viewing this folder
or not

 

Read More: