IOError: cannot identify image file; Unresolved import: Image

1、IOError: cannot identify image file

 

解決方案:

import Image

改爲 

from PIL import Image

2、Unresolved import: Image

 打開eclipse->window->references -> Pydev->interpreter python->Forced Builtins->New->輸入PIL->Apply-> OK -> 重啓eclipse 

參考   https://blog.csdn.net/g19920917/article/details/41803785

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章