python3 cannot import name 'ImageTK'


ubuntu16.04 已装python3,PIL报错
from PIL import ImageTK 
ImportError: cannot import name 'ImageTK'

解决:

 sudo apt-get install python3-pil python3-pil.imagetk

备注,python安装如下:

sudo apt-get install python-imaging python-imaging-tk

 

 
 
posted @ 2018-04-18 10:18  Yang_tao  阅读(1846)  评论(0编辑  收藏  举报