PIL:ImportError:_imaging扩展名是为枕头或PIL的另一个版本构建的

PIL:ImportError:_imaging扩展名是为枕头或PIL的另一个版本构建的,第1张

PIL:ImportError:_imaging扩展名是为枕头或PIL的另一个版本构建的

这只是一个安装问题。

如果尚未安装pip,请先在系统上安装它。它也可用于Windows。

升级您的numpy,pip /枕头,scipy:

pip install -U numpypip install -U pil/pillowpip install -U scipy

Windows的最佳选择是使用anaconda。

我认为在conda中已经安装了pip。这样可以解决您的系统版本问题。

In [1]: from PIL import ImageIn [2]: import scipy.ndimage as spndIn [3]: x = spnd.imread('ppuf100x91.gif')In [4]: print x[[255 255 255 ..., 255 255 255] [255 255 255 ..., 255 255 255] [255 255 255 ..., 255 255 255] ...,  [255 255 255 ..., 255 255 255] [255 255 255 ..., 255 255 255] [255 255 255 ..., 255 255 255]]


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5646070.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-16
下一篇 2022-12-16

发表评论

登录后才能评论

评论列表(0条)

保存