I am trying to take a screenshot with 'ImageGrab' from 'PIL' but when I want to save the pic I get an error message:
IOError: [Errno 13] Permission denied: 'C:\pic123a.jpg'
The code:
screen_img = ImageGrab.grab()
screen_img.save('C:\\screen.jpg')
Does anyone know how to fix this? Thanks!