为 python 3.4 安装 PIL

installing PIL for python 3.4

我在 ubuntu 14.4 上安装了 python 3.4 和 2.7。 我想在 3.4 上安装 PIL(如果你愿意,也可以安装枕头......)但是当我尝试时:

$ sudo pip install pillow

它安装在 python 2.7 上 如何让它在 python3.4 上安装 pillow?

使用pip3 install pillow。您可能需要 sudo.

sudo python3 -m pip 安装枕头 raspberry pi python3.4