import pyautogui import time myScreenshot = pyautogui.screenshot() myScreenshot.save(r'C:\Users\aesir.horton\Desktop\1.png')