python安转pillow的问题(imagetk模块)
爱吃鱼的葱 2018-02-23 04:15:35 我在树莓派上python3环境下安装了pillow 但是貌似树莓派上安装pillow时不会安装imagetk模块,所以我输入 from PIL import ImageTk 时会报错,有没有大神知道如何在树莓派上安装imagetk模块?或者有没有其他第三方函数能帮助我用python tkinter写GUI界面时,能够显示bmp格式的图片吗?
PS: 尝试过:sudo apt-get install python-imaging-tk
树莓派显示:
pi@raspberrypi:~ $ sudo apt-get install python-imaging-tk
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python-imaging-tk : Depends: python-imaging (= 1.1.7-4+deb7u3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.