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-08 10:06:36 浏览: 337
PIL.rar_pic python语言_python pic模块_python截图_site:www.pudn.com
根据您提供的错误信息,看起来是Pillow库版本不匹配导致的问题。建议您尝试升级或降级Pillow库版本,使其与其他库版本匹配。
您可以尝试使用以下命令升级或降级Pillow库版本:
- 升级Pillow库版本:`pip install --upgrade pillow`
- 降级Pillow库版本:`pip install pillow==9.1.1`
请注意,如果您正在使用虚拟环境,请确保在虚拟环境中安装和升级/降级Pillow库版本。
阅读全文