Python: 'pyautogui' has no attribute 'screenshot' (Windows)
问题 I am trying to take a screenshot with the pyautogui module, but keep getting this error >>> image = pyautogui.screenshot() Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'pyautogui' has no attribute 'screenshot' Is there something I'm missing? The chapter in Automate the Boring Stuff with Python said that as I'm on Windows, I shouldn't need to download anything other than pyautogui itself for this to work. Anyone know why this might happen?