1

I don't want to mess up with Xcode and stuff like that. I've tried a few command line installations but nothing seemed to work smoothly and I can't figure it out. Is there a way for someone who doesn't know a lot about programming to install Pillow? (Bonus points if you can give me an installation file that just does it all for you, that's the way I've done it on my Windows). Thank you!

4 Answers4

3
sudo easy_install pip

will install pip for you and then

pip install Pillow

will install Pillow as @dqiu mentioned.

drodrigues
  • 118
  • 6
  • Is there anything else I should need to do in order to successfully include the line `from PIL import Image` in a program? Because the installation seems to work but I still get an error `No module named PIL` –  Dec 30 '14 at 05:57
2

You can use Python's package manager pip.

pip install Pillow should do the trick to install it.

You can see all the other ways on the webpage for Pillow.

dqiu
  • 470
  • 2
  • 7
0

You should follow these steps, as detailed in the pip documentation:

  1. Download get-pip.py. Right click on the link and download the file.

  2. Open your Terminal

  3. Type sudo python ~/Downloads/get-pip.py (if the file is in the default Downloads folder). Or type the full path to the file.

  4. You will be prompted for a password, type your normal user password.

This script will install pip and setuptools (if its not already installed). Now you can proceed to install Pillow and other packages:

pip install Pillow

If you run into problems, have a look at Installing Pillow/PIL on Mavericks.

Community
  • 1
  • 1
Burhan Khalid
  • 169,990
  • 18
  • 245
  • 284
0

virtualenv worked for me!

sudo pip install virtualenv
virtualenv python_script && cd !$
. /activate/bin
pip install Pillow
buildmaestro
  • 1,386
  • 5
  • 22
  • 37