我正在尝试在python3上使用Mac。我已经安装了pyobjc-core和pyobjc,但是错误提示Quartz
未找到。我对这种安装非常陌生。有什么解决办法吗?
这是我的pycharm错误:
Traceback (most recent call last):
File "/Users/Thyme/PycharmProjects/DinosourBot/venv/lib/python3.6/site-packages/pyautogui/_pyautogui_osx.py", line 5, in <module>
import Quartz
ModuleNotFoundError: No module named 'Quartz'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/Thyme/PycharmProjects/DinosourBot/Bot.py", line 2, in <module>
import pyautogui
File "/Users/Thyme/PycharmProjects/DinosourBot/venv/lib/python3.6/site-packages/pyautogui/__init__.py", line 110, in <module>
from . import _pyautogui_osx as platformModule
File "/Users/Thyme/PycharmProjects/DinosourBot/venv/lib/python3.6/site-packages/pyautogui/_pyautogui_osx.py", line 7, in <module>
assert False, "You must first install pyobjc-core and pyobjc: https://pyautogui.readthedocs.io/en/latest/install.html"
AssertionError: You must first install pyobjc-core and pyobjc: https://pyautogui.readthedocs.io/en/latest/install.html
Process finished with exit code 1
最佳答案
我已经解决了这个问题
安装pyobjc-framework-Quartz,
由pycharm提供
关于python - ModuleNotFoundError:没有名为“Quartz”的模块,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/50948134/