3b1b / manim

Animation engine for explanatory math videos
MIT License
70.17k stars 6.17k forks source link

ModuleNotFoundError: No module named 'PIL' (Totally new to Python) #506

Open JacksonRFilms opened 5 years ago

JacksonRFilms commented 5 years ago

I installed Python 2.5.3, 3.4.1 and the newest Python, and ffmpeg is working, and pip seems to work. When I run pip list it shows Pillow (2.5.3) exists. I have the jumpcutter-master folder in my downloads folder (does it have to be in a specific location?) I drag jumpcutter.py into cmd and run it, and I get this:

C:\Users\pitot>C:\Users\pitot\Downloads\jumpcutter-master\jumpcutter-master\jumpcutter.py
Traceback (most recent call last):
  File "C:\Users\pitot\Downloads\jumpcutter-master\jumpcutter-master\jumpcutter.py", line 2, in <module>
    from PIL import Image
ModuleNotFoundError: No module named 'PIL'

I'm totally new to Python and the only coding experience I have is one semester of Java, so I barely understand anything I've read on the internet about this issue. Can you guys dumb it down a little for me? Do I have to add more things to the "PATH" variable or something? Do I need a special python terminal or is cmd prompt ok?

loftusa commented 5 years ago

@JacksonRFilms - you need to use pip to install the Pillow module: https://pillow.readthedocs.io/en/stable/

What's happening is:

  1. jumpcutter.py is trying to import pillow (likely to do something with images)
  2. pillow isn't installed into the python being used by your interpreter.

It's likely that a different python is being used to run jumpcutter.py than the one that shows pip existing in pip list.

JacksonRFilms commented 5 years ago

Ok, so how do I fix that? I’m sorry, I’m really not that great with programming. I feel like a 70-year old trying to use an Ipad.

On Thu, Apr 18, 2019 at 12:00 PM Alex Loftus notifications@github.com wrote:

@JacksonRFilms https://github.com/JacksonRFilms - you need to use pip to install the Pillow module: https://pillow.readthedocs.io/en/stable/

What's happening is:

  1. jumpcutter.py is trying to import pillow (likely to do something with images)
  2. pillow isn't installed into the python being used by your interpreter.

It's likely that a different python is being used to run jumpcutter.py than the one that shows pip existing in pip list.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/3b1b/manim/issues/506#issuecomment-484573156, or mute the thread https://github.com/notifications/unsubscribe-auth/AL3EX3CRVYZI57SBYPDG3F3PRCLLDANCNFSM4HGOFIKQ .

elmiba commented 5 years ago

If your question is on to install pillow then just open cmd and type in Py -m pip install Pillow==2.1.0