screenshot
screenshot copied to clipboard
How to use screenshot on Mac OS X?
I got the following error on Mac OS X 10.15.6. Could anybody let me know how to fix it?
$ pip3 install screenshot
Requirement already satisfied: screenshot in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (1.0.1)
Requirement already satisfied: detect in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from screenshot) (2020.12.3)
Requirement already satisfied: click in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from screenshot) (7.0)
Requirement already satisfied: pyobjc-framework-Quartz in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from screenshot) (7.1)
Requirement already satisfied: pyobjc-framework-Cocoa>=7.1 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from pyobjc-framework-Quartz->screenshot) (7.1)
Requirement already satisfied: pyobjc-core>=7.1 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from pyobjc-framework-Quartz->screenshot) (7.1)
$ screenshot Terminal
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/bin/screenshot", line 5, in <module>
from screenshot.mac.capture import run
ModuleNotFoundError: No module named 'screenshot.mac'
Hi @ssxcxS45XT,
Sorry that you're experiencing a problem with screenshot
, but thanks for opening an issue.
A broken version was pushed to PyPI with the version number 1.0.1
. Using version 1.0.0
should fix your issue:
python3 -m pip install screenshot==1.0.0
If you're still encountering a problem, please report it here and I'll see what I can do about fixing it.