Python [Errno 13] Permission denied:

In my case, the same error was because I was passing a directory name instead the file name.

Maybe could be the same problem of others.


In my case, I had opened the csv file via Excel and ran the script. Then this Permission denied exception occurred.

Just closed the opened file and run the script again :)


The file in the script is opened somewhere in the system. That is the reason for getting "PermissionError : [Error 13]".

Solution:
Just close the file and run the script. You won't get the error.

Tags:

Python

Csv

Errno