Ошибка в pyautogui.

Shelok_Kholmes

Известный
Автор темы
364
41
Мб кто-то сталкивался уже, про выполнении кода - такая ошибка:
PS D:\files for python> & D:/python/python.exe "d:/files for python/parking.py"
Traceback (most recent call last):
File "d:\files for python\parking.py", line 4, in <module>
for pos in pyautogui.locateAllOnScreen('Car 1.png'):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python\Lib\site-packages\pyautogui\__init__.py", line 175, in wrapper
return wrappedFunction(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python\Lib\site-packages\pyautogui\__init__.py", line 201, in locateAllOnScreen
return pyscreeze.locateAllOnScreen(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python\Lib\site-packages\pyscreeze\__init__.py", line 397, in locateAllOnScreen
screenshotIm = screenshot(region=None) # the locateAll() function must handle cropping to return accurate coordinates, so don't pass a region here.
^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python\Lib\site-packages\pyscreeze\__init__.py", line 144, in wrapper
raise PyScreezeException('The Pillow package is required to use this function.')
pyscreeze.PyScreezeException: The Pillow package is required to use this function.
Python:
import pyautogui, sys
import time

for pos in pyautogui.locateAllOnScreen('Car 1.png'):
    time.sleep(4)
    print(pos)