Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Pillow on macOS Mojave - running python 3.7

I'm totally new and all the stuff within Terminal is beyond me.

I mananged to get Pillow 5.3 installed on my computer, but it went into the Python 2.7 folder in Library. I've been using Python 3.7 in PyCharm as I learn.

None of the import commands are working:

import PIL
from PIL import pillow
import pillow

My system doesn't recognize any of these. Do I need to move the Pillow 5.3 folder somewhere? I must be missing a step somewhere.

like image 762
Jonathan Avatar asked May 02 '26 16:05

Jonathan


1 Answers

You have to install pillow for Python 3.7, not 2.7.

pip3 install pillow

(if pip3 is available from your command line, otherwise, look where PyCharm has its Python 3.7 install).

like image 166
Matthieu Brucher Avatar answered May 04 '26 06:05

Matthieu Brucher



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!