欢迎使用CSDN-markdown编辑器

来源:互联网 发布:合成器软件 编辑:程序博客网 时间:2024/05/16 05:38

Python Image package 安装和冲突

想搞一下后向反馈网络,因此找了一下GitHub:
https://github.com/petrvacha/Character-recognition-by-neural-network

发现用到了图像处理的包:Image。
安装过程:

安装之后发现无法运行,发现Image读取的时候始终报错:
IOError: cannot identify image file
查到这个错误:

>>> from PIL import ImageTraceback (most recent call last):  File "<stdin>", line 1, in <module>ImportError: No module named PIL>>> from pil import ImageTraceback (most recent call last):  File "<stdin>", line 1, in <module>ImportError: No module named pil>>> import PIL.ImageTraceback (most recent call last):  File "<stdin>", line 1, in <module>

估计是Image和系统的其他class冲突。

0 0
原创粉丝点击