Permissionerror: [Errno 13] Permission Denied

PermissionError: [Errno 13] Permission denied on Windows

I had this problem too.

I just delete the python version downloaded from the Microsoft Store and re-installing it from the website resolves my issue.

Here you can donwload the last python version: https://www.python.org/downloads/

PermissionError: [Errno 13] Permission denied: '.'

I couldn't figure out what is the exact problem of it (Maybe version issue I believe), but I changed the code like below and it worked well.

import keras.utils

fnames = sorted([os.path.join(train_cats_dir, fname) for
fname in os.listdir(train_cats_dir)])

img_path = fnames[3]

img = keras.utils.load_img(img_path, target_size=(150, 150))

Importing keras.utils only solved it.

the Error is: PermissionError: [Errno 13] Permission denied: 'C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\StartUp\\IP.PY'

You don't appear to have permissions to write to the Start Up folder.

You can fix this by running your Python terminal as an administrator (right click IDLE/cmd and press run as administrator).



Related Topics



Leave a reply



Submit