asweigart / pyautogui

A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.
BSD 3-Clause "New" or "Revised" License
10.5k stars 1.27k forks source link

PyAutoGUI unable to import pyscreeze due to Pillow compatibility issue. #840

Closed orbitalorb closed 9 months ago

orbitalorb commented 9 months ago

i'm attempting to locate a png on my screen, and when i do it i get the following error:

" _couldNotImportPyScreeze raise PyAutoGUIException( pyautogui.PyAutoGUIException: PyAutoGUI was unable to import pyscreeze. (This is likely because you're running a version of Python that Pillow (which pyscreeze depends on) doesn't support currently.) Please install this module to enable the function you tried to call. "