winter
winter

Reputation: 237

Unable to import PIL into project

The PIL module should be installed because when I run the pip install pillow I get this message: Requirement already satisfied: pillow in [my installation route]. But, when I try to import this into a file, I get this error:

ModuleNotFoundError: No module named 'Pillow'

What am I doing wrong?

Upvotes: 1

Views: 271

Answers (2)

Dartanan sams
Dartanan sams

Reputation: 45

this has worked for me if your using vscode try install by typing py -m pip install pillow

from PIL import ImageTk,Image

Upvotes: 1

Shadow5
Shadow5

Reputation: 19

Pillow is a fork of PIL, and the import is carried over.

import PIL

Should do the trick. The documentation has additional details: https://pillow.readthedocs.io/en/stable/installation.html

Upvotes: 0

Related Questions