The book that appears in this case is SB Creative's "[Introduction to Python" Super "to acquire certain power](https://www.amazon.co.jp/ Python" Super "to acquire certain power" "Introduction-" Super "introductory series to acquire certain power-Kamada-Masahiro / dp / 4977384409 / ref = sr_1_3? __mk_ja_JP =% E3% 82% AB% E3% 82% BF% E3% 82% AB% E3 % 83% 8A & keywords = python +% E8% B6% 85 & qid = 1584289306 & sr = 8-3) ".
In Chapter 6 of this book, we will talk about using an external library. Pillow is used as an example. At that time, use the pip command. There was one thing that got stuck here, and when I looked it up, there were people who had similar problems on the net, so I wrote an article. First, install Pillow as per the book and follow the instructions.
$ pip install Pillow #For MacOS'pip'To'pip3'Please convert to.
(Result omitted)
$ from PIL import Image
from: can't read /var/mail/PIL
According to the book, it should be blank here. By the way, when I read the book firmly, it says something like this. "** After launching the interactive shell **, enter and execute as follows". ... well, let's start ...
$ python3
Python 3.7.3 (default, Mar 6 2020, 22:34:30)
[Clang 11.0.3 (clang-1103.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from PIL import Image
>>>
Did it work? There are some other errors, such as an older version of pip, so please check again. (I can't handle it in this article ... I'm not good enough, I'm sorry)
Recommended Posts