```在此处输入代码So I installed
pyautogui`,但导入时遇到问题:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyautogui/_pyautogui_osx.py", line 5, in <module>
import Quartz
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/Quartz/__init__.py", line 5, in <module>
import objc
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/objc/__init__.py", line 32, in <module>
from objc._bridgesupport import *
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/objc/_bridgesupport.py", line 13, in <module>
import pkg_resources
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py", line 36, in <module>
import email.parser
ModuleNotFoundError: No module named 'email.parser'; 'email' is not a package
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyautogui/__init__.py", line 110, in <module>
from . import _pyautogui_osx as platformModule
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/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
好吧,我尝试安装pyobjc-core
和pyobjc
,但是我又遇到了同样的问题,而且我也不明白为什么有对电子邮件软件包的引用```
body
{
background-color:gray;
}