When trying to use screenshot() using pyautogui on Linux (Arch Linux), I needed to install not only scrot but also PIL ( pip install Pillow ) for everything to work correctly, otherwise it will fall in error on Image.open(tmpFilename) in the function "_screenshot_linux"
I think it should be added in the docs and/or installed together with pyautogui
When trying to use screenshot() using pyautogui on Linux (Arch Linux), I needed to install not only scrot but also PIL ( pip install Pillow ) for everything to work correctly, otherwise it will fall in error on Image.open(tmpFilename) in the function "_screenshot_linux"
I think it should be added in the docs and/or installed together with pyautogui