import pyautogui
screenshot = pyautogui.screenshot()
screenshot.save("screenshot.png")
when executing this code gives me this error:
File "C: \ Users \ User \ Anaconda3 \ lib \ site-packages \ pyscreeze__init __. Py", line 312, in _screenshot_win32 im = ImageGrab.grab ()
Apparently the error is given in the pyscreeze module in your init , which I do not know because I get an error, if pyscreeze comes pre-installed and I have the pil modules and pillow.
there you can see the error, which is not because it is given, and if you have another answer other than from PIL import Image please help me as it is already in the% code % co: