前言
在mac上使用pyautogui时出现错误

问题
我正在尝试pyautogui在 OSX 10.11 上使用 Python 3.6.5 的屏幕截图功能
pyautogui.screenshot()
但是提示上图错误
解决方案
因为 Image 是来自 PIL 的模块,所以我们只要安装Pillow库即可
pip install Pillow
感谢
Pyautogui screenshot - NameError: name ‘Image’ is not defined

被折叠的 条评论
为什么被折叠?



