0

I know that this question has been asked before, but my conditions are different. I have installed pillow (pip install pillow) but 'from PIL import Image' throws the error 'No module named PIL.' This makes absolutely no sense to me as I have installed the proper dependencies.

pppery
  • 3,731
  • 22
  • 33
  • 46
Bob Samuels
  • 385
  • 2
  • 6
  • 16
  • 1
    What directory did your pillow package install into? And are you using an IDE or jupyter environment that sources packages from that directory? – ParalysisByAnalysis Sep 09 '19 at 21:21
  • Make sure you are inside your virtual environment (if using one). Also, I would try `pip3 install pillow`. Finally, in some packages you may need to `import Image` instead of import PIL (more info [here](https://stackoverflow.com/questions/8863917/importerror-no-module-named-pil)) – alphazeta Sep 09 '19 at 21:24
  • @ParalysisByAnalysis I installed it here: /anaconda3/lib/python3.7/site-packages (5.3.0). I'm using atom to program the project. – Bob Samuels Sep 10 '19 at 00:36

0 Answers0