import pyautogui
myScreenshot = pyautogui.screenshot()
myScreenshot.save(r'C:\Users\"my user name"\PycharmProjects\"my project"\ name.png')
I don't know what I did wrong but any similar command is not working (I have installed pyautogui
).
CodePudding user response:
If you already have PIL
(Pillow) installed, you'll need to upgrade it via the command prompt command
pip install Pillow --upgrade
CodePudding user response:
Just install Pillow package using pip:
pip install Pillow
or
pip3 install Pillow