Search code examples
pythonpyautogui

I am trying to use pyautogui and its giving me this error


this is the code:

import pyautogui
btn = pyautogui.locateOnScreen("Screenshot_1.png")
pyautogui.moveTo()
pyautogui.doubleClick()

this is the error

i already tried to reinsatll and it does'nt work


Solution

  • You must install pillow. Use this command:

    pip install Pillow