0

I installed pillow with pip install pillow and it worked. But when importing, it tells me that it cannot find the module.

example : screen_code

I am on Windows 10 and python 3.9.9

martineau
  • 119,623
  • 25
  • 170
  • 301
Théo
  • 1
  • 1
  • 3
  • What if you try to install with `py -m pip install pillow`? – Leau Dec 11 '21 at 00:08
  • 1
    Does anything in https://stackoverflow.com/questions/8863917/importerror-no-module-named-pil answer your question? When you used `pip install pillow`, what messages did you see? When you do `pip list`, do you see the package? Can you make the code work if you run it from the command line? What IDE are you using in that screenshot, and where is it looking for Python? How do you know? – Karl Knechtel Dec 11 '21 at 00:28
  • From the screenshot it looks like you're using some IDE, so it's possible, even likely, that the IDE doesn't know about you installing the PIL. Consult the part of the IDE's documentation about installing modules. – martineau Dec 11 '21 at 01:44

0 Answers0