To Fix PermissionError: [Errno 13] Permission denied Error just Make sure of given file path. To solve this error just given File path Not Folder Path import os path = r"my/path/to/file.txt" assert os.path.isfile(path) with open(path, "r") as f: pass