简体   繁体   English

为python 3.4安装PIL

[英]installing PIL for python 3.4

I have python 3.4 , and 2.7 installed on a ubuntu 14.4. 我在ubuntu 14.4上安装了python 3.4和2.7。 I want to install PIL (or pillow if you wish...) on 3.4 but when I try : 我想在3.4上安装PIL(或枕头,如果你愿意...)但是当我尝试时:

$ sudo pip install pillow

It installs it on python 2.7 How do I make it install pillow on python3.4? 它安装在python 2.7上如何在python3.4上安装它?

Use pip3 install pillow . 使用pip3 install pillow You may need sudo . 你可能需要sudo

sudo python3 -m pip install pillow raspberry pi python 3.4

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

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