D:\python3.9\lib\PIL\Image.py:153: RuntimeWarning: The _imaging extension was built for another version of Pillow or PIL: Core version: 9.2.0 Pillow version: 9.1.1 warnings.warn(str(v), RuntimeWarning) Traceback (most recent call last): File "E:\aitoapp\aitoautomaticclick.py", line 1, in <module> import uiautomator2 as u2 File "D:\python3.9\lib\uiautomator2\__init__.py", line 41, in <module> import adbutils File "D:\python3.9\lib\adbutils\__init__.py", line 14, in <module> from ._device import AdbDevice, Sync File "D:\python3.9\lib\adbutils\_device.py", line 30, in <module> from PIL import Image, UnidentifiedImageError File "D:\python3.9\lib\PIL\Image.py", line 135, in <module> raise ImportError( ImportError: The _imaging extension was built for another version of Pillow or PIL: Core version: 9.2.0 Pillow version: 9.1.1
时间: 2023-10-07 17:10:28 浏览: 266
这是一个运行时警告和ImportError。警告是因为Pillow的版本与_imaging扩展的版本不匹配,而ImportError是因为Pillow的版本与PIL的版本不匹配。你可以尝试更新Pillow或PIL,或者安装与你的Pillow或PIL版本兼容的_imaging扩展。你可以在Python中运行`pip show Pillow`或`pip show PIL`来查看版本信息,然后使用`pip install Pillow==版本号`或`pip install PIL==版本号`来安装特定版本的Pillow或PIL。
阅读全文