gpt4 book ai didi

python - 导入错误 : cannot import name _imaging

转载 作者:太空狗 更新时间:2023-10-29 17:21:25 24 4
gpt4 key购买 nike

我安装了Pillow,然后我想做的事:

from PIL import Image

我收到以下错误:

Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 61, in <module>
ImportError: cannot import name _imaging

但是,如果我分别导入这些,一切都很好,即:

import _imaging
import Image

你知道问题可能是什么吗?

最佳答案

我有同样的问题,我通过使用下面的命令升级这个包解决了这个问题:

pip install -U Pillow

关于python - 导入错误 : cannot import name _imaging,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25340698/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com