0

I have installed Pillow but when I try to import the Image module I get an exception:

enter image description here

enter image description here

How can I resolve it?

halfer
  • 19,824
  • 17
  • 99
  • 186
user8270077
  • 4,621
  • 17
  • 75
  • 140

1 Answers1

0

i think you should try it like this: from PIL import Image

please refer documentation for more clarity

Aneesh Damodaran
  • 566
  • 4
  • 10
  • @ Aneesh Damodaran: Thank you. I tried it but I get an exception: from PIL import Image: ImportError: DLL load failed: The specified module could not be found. – user8270077 Jun 25 '18 at 13:57
  • after reading through few posts, it looks like architecture mismatch. [Got this from another thread](https://stackoverflow.com/questions/43267754/importing-pil-more-specifically-image-from-pil-isnt-working): please try it once. 1. Uninstall it via `conda remove --force pillow` 2. Reinstall. Fearing something was wrong with the original Anaconda distribution: `conda install -c conda-forge pillow` – Aneesh Damodaran Jun 25 '18 at 14:15
  • It worked! I really appreciate your altrouism and time. Congratulations! – user8270077 Jun 25 '18 at 14:44
  • Happy to know it helped you. – Aneesh Damodaran Jun 26 '18 at 02:35