简体   繁体   English

Raspberry PI上的PIL ImageTK

[英]PIL ImageTK on Raspberry PI

I tried to install ImageTk for Python3 on Raspberry Pi: 我试图在Raspberry Pi上为Python3安装ImageTk:

sudo apt-get install python3-pil
sudo apt-get install python3-imaging-tk

and: 和:

E: Unable to locate package python3-pil
E: Unable to locate package python3-imaging-tk

I search on the net but nothing. 我在网上搜索,但一无所获。 Whats the problem? 有什么问题? How I fix this? 我该如何解决?

Note: I already updated the apt-get 注意:我已经更新了apt-get

I found the problem, I have installed PIL, but he is outdated and doesn't work, and when I try to install pillow, python uses PIL, not Pillow. 我发现了问题,我已经安装了PIL,但是他已经过时且无法使用,当我尝试安装枕头时,python使用PIL,而不是Pillow。 For resolve I removed PIL and Pillow and do: pip install pillow 为了解决问题,我删除了PIL和Pillow并执行以下操作:pip安装枕头

If you have the same problem, you have to unistall PIL and Pillow and install Pillow again. 如果您有同样的问题,则必须取消PIL和Pillow的安装,然后重新安装Pillow。 This works fine. 这很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM