由于 Pillow 兼容性问题,PyAutoGUI 无法导入 pyscreeze。 我尝试更新 pyscreeze 和 pyautogui,但都没有执行任何操作。
错误:
_couldNotImportPyScreeze
raise PyAutoGUIException(
pyautogui.PyAutoGUIException: PyAutoGUI was unable to import pyscreeze. (This is likely because you're running a version of Python that Pillow (which pyscreeze depends on) doesn't support currently.) Please install this module to enable the function you tried to call.
我尝试更新 pyscreeze 和 pyautogui,但都没有执行任何操作。
简单: 卸载 pyscreeze 并重新安装它
pip3/pip uninstall pyscreeze
pip3/pip install pyscreeze
又可以工作了