Clogged with pip in python super primer (from: can't read / var / mail / PIL)

About the book you are using

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) ".

Main subject

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

Clogged with pip in python super primer (from: can't read / var / mail / PIL)
Super Primer to python-Getting started with python3.5 in 3 minutes
Read files in parallel with Python
Read fbx from python with cinema4d
Read a file in Python with a relative path from the program
Read a Python # .txt file for a super beginner in Python with a working .py
Read text in images with python OCR
[Automation] Read mail (msg file) with Python
Read table data in PDF file with Python
Read line by line from a file with Python
Read QR code from image file with Python (Mac)
Get mail from Gmail and label it with Python3
Start numerical calculation in Python (with Homebrew and pip)
Read DXF in python
PIL installation with pip
[Python] Read From Stdin
[Road to intermediate Python] Install packages in bulk with pip
[Internal_math (1)] Read with Green Coder AtCoder Library ~ Implementation in Python ~
Get message from first offset with kafka consumer in python