How to use Python Image Library in python3 series

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

How to use Python Image Library in python3 series
How to use the C library in Python
[Python] How to use Pandas Series
How to use Requests (Python Library)
How to use SQLite in Python
How to use Mysql in python
How to use ChemSpider in Python
How to use PubChem in Python
[Introduction to Python] How to use class in Python?
How to adjust image contrast in Python
How to use __slots__ in Python class
How to use regular expressions in Python
How to use is and == in Python
Summary of how to use MNIST in Python
How to use tkinter with python in pyenv
How to use PyTorch-based image processing library "Kornia"
python3: How to use bottle (2)
[Python] How to use list 1
How to use Python argparse
Python: How to use pydub
[Python] How to use checkio
How to develop in Python
[Python] How to use input ()
How to use Python lambda
[Python] How to use virtualenv
python3: How to use bottle (3)
python3: How to use bottle
How to use Python bytes
[Python] How to use the graph creation library Altair
How to create an image uploader in Bottle (Python)
I tried to summarize how to use pandas in python
How to use the model learned in Lobe in Python
[Python] How to do PCA in Python
Python: How to use async with
How to use classes in Theano
How to collect images in Python
[Python] How to import the library
[Python] How to use list 3 Added
How to use OpenPose's Python API
How to wrap C in Python
How to use FTP with Python
Python: How to use pydub (playback)
How to use python zip function
How to handle Japanese in Python
[Python] How to use Typetalk API
How to debug the Python standard library in Visual Studio
How to import Python library set up in EFS to Lambda
[python] How to use the library Matplotlib for drawing graphs
[Introduction to Udemy Python 3 + Application] 36. How to use In and Not
How to generate exponential pulse time series data in python
Comparison of how to use higher-order functions in Python 2 and 3
Notes on how to use marshmallow in the schema library
[Latest] How to use Python library to save Google image search & use Chrome Driver on ubuntu
How to use calculated columns in CASTable
[Python] Summary of how to use pandas
How to access environment variables in Python
How to dynamically define variables in Python
How to install and use pandas_datareader [Python]
How to do R chartr () in Python
[Itertools.permutations] How to put permutations in Python
How to use Google Test in C