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.
...全文
1662 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

37,719

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • IT.BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧