PS D:\Program Files\Python37\Scripts> pip3 install screenshot
Collecting screenshot
Using cached screenshot-1.0.0-py3-none-any.whl (5.3 kB)
Collecting click
Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting pyobjc-framework-Quartz
Using cached pyobjc-framework-Quartz-6.2.tar.gz (3.4 MB)
ERROR: Command errored out with exit status 1:
command: 'd:\program files\python37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\GG\\AppData\\Local\\Temp\\pip-install-fl4zp2mx\\pyobjc-framework-Quartz\\setup.py'"'"'; __file__='"'"'C:\\Users\\GG\\AppData\\Local\\Temp\\pip-install-fl4zp2mx\\pyobjc-framework-Quartz\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\GG\AppData\Local\Temp\pip-pip-egg-info-t3_o1nbl'
cwd: C:\Users\GG\AppData\Local\Temp\pip-install-fl4zp2mx\pyobjc-framework-Quartz\
Complete output (9 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\GG\AppData\Local\Temp\pip-install-fl4zp2mx\pyobjc-framework-Quartz\setup.py", line 67, in <module>
py_limited_api=True,
File "C:\Users\GG\AppData\Local\Temp\pip-install-fl4zp2mx\pyobjc-framework-Quartz\pyobjc_setup.py", line 390, in Extension
os_level = get_os_level()
File "C:\Users\GG\AppData\Local\Temp\pip-install-fl4zp2mx\pyobjc-framework-Quartz\pyobjc_setup.py", line 200, in get_os_level
with open("/System/Library/CoreServices/SystemVersion.plist", "rb") as fp:
FileNotFoundError: [Errno 2] No such file or directory: '/System/Library/CoreServices/SystemVersion.plist'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
————————————————
著作權宣告:本文為CSDN博主「qq_41100664」的原創文章,遵循CC 4.0 BY-SA著作權協議,轉載請附上原文出處鏈接及本宣告。
原文鏈接:https://blog.csdn.net/qq_41100664/article/details/106117834
uj5u.com熱心網友回復:
是這個庫吧pyscreenshotuj5u.com熱心網友回復:
多謝您的回復。我是在學 Robot Framework 時候有提到有這個Screenshot 庫
pycreenshot 庫安裝時OK的。
uj5u.com熱心網友回復:
這個庫不用單獨安裝。直接參考就可以用哈。但是不知道為什么單獨安裝會報錯。歡迎各位大神指教哈。
uj5u.com熱心網友回復:
截屏用pyautogui它不香嗎???uj5u.com熱心網友回復:
謝謝。學習中。。。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/46747.html
上一篇:python crc校驗
下一篇:模糊c均值分割MATLAB代碼
