manim icon indicating copy to clipboard operation
manim copied to clipboard

"ImportError: No module named PIL" even after "pip install -r requirements.txt" and Pillow installed

Open JoeyKL opened this issue 9 years ago • 3 comments

Hi,

To test out the library, I downloaded & opened the zip, navigated into the directory, installed dependency, and executed pip install -r requirements.txt and then python extract_scene.py -p example_scenes.py SquareToCircle, yielding the following.

Traceback (most recent call last):
  File "extract_scene.py", line 12, in <module>
    from helpers import *
  File "/Users/joeykellison-linn/Desktop/manim-master/helpers.py", line 4, in <module>
    from PIL import Image
ImportError: No module named PIL

This confuses me greatly. Pillow is definitely installed. I'm on a Mac running python installed by homewbrew. Thoughts?

JoeyKL avatar Nov 13 '17 19:11 JoeyKL

Which exact version of Python are you running? Are you able to open up the intended Python version's console and do that import manually without running the module?

You probably installed PIL for a wrong 2/3 version of python, ...or if you installed it properly, you might be trying to run it with the wrong python interpreter version.

theshteves avatar Dec 11 '17 02:12 theshteves

Related https://stackoverflow.com/questions/8863917/importerror-no-module-named-pil

vors avatar Mar 11 '18 19:03 vors

Closing, as this issue seems to be resolved.

eulertour avatar Nov 27 '18 19:11 eulertour