python – No module named Image
python – No module named Image
You are missing PIL (Python Image Library and Imaging package). To install PIL I used
pip install pillow
For my machine running Mac OSX 10.6.8, I downloaded Imaging package and installed it from source.
http://effbot.org/downloads/Imaging-1.1.6.tar.gz and cd into Download directory. Then run these:
$ gunzip Imaging-1.1.6.tar.gz
$ tar xvf Imaging-1.1.6.tar
$ cd Imaging-1.1.6
$ python setup.py install
Or if you have PIP installed in your Mac
pip install http://effbot.org/downloads/Imaging-1.1.6.tar.gz
then you can use:
from PIL import Image
in your python code.
Did you setup PIL module? Link
You can try to reinstall it on your computer.
python – No module named Image
It is changed to : from PIL.Image import core as image
for new versions.
Related posts
- Python -Intersection of multiple lists?
- algorithm – Uniform Cost Search in Python
- Install Python package: Package missing in current win-64 channels
- OSError: [WinError 10022] An invalid argument was supplied – Windows 10 Python
- Difference between Pythons Generators and Iterators
- printing – How to print to stderr in Python?
- super in python 2.7