Chapter 3 of O'Reilly's "Deep Learning from scratch". By using PIL to display MNIST images (sample images for handwritten recognition).
Please refer to here for PIL (Python Image Library) http://www.lifewithpython.com/2013/09/pil.html
Copy the sample code and execute it. Then I got an error.
from PIL import Image
...
Traceback (most recent call last):
File "/Users/ukwksk/Training/orreilly-deep-learning/chapter03/section3_6_number_recognition.py", line 7, in <module>
from PIL import Image
ImportError: No module named 'PIL'
"There is no PIL" Oh, it's not a standard library.
$ pip install PIL
Collecting PIL
Could not find a version that satisfies the requirement PIL (from versions: )
No matching distribution found for PIL
There is no library for PIL ...?
When I investigated, PIL seems to be up to 2 series, not in 3 series https://librabuch.jp/blog/2013/05/python_pillow_pil/
"This document uses the following programming languages and libraries. -Python3 series - NumPy - Matplotlib 」 What was it ..
So according to the URL above
$ pip install pillow
So, it was solved safely.
Recommended Posts