环境:ubuntu10.04 + python2.6
在安装完PIL后执行下面语句
from PIL import ImageTk
可能会报错:cannot import name ImageTk
原因:ImageTk在安装PIL的时候没有一并安装
解决办法:sudo apt-get install python-imaging-tk
注:此问题在windows 环境下没有遇到
环境:ubuntu10.04 + python2.6
在安装完PIL后执行下面语句
from PIL import ImageTk
可能会报错:cannot import name ImageTk
原因:ImageTk在安装PIL的时候没有一并安装
解决办法:sudo apt-get install python-imaging-tk
注:此问题在windows 环境下没有遇到