Why are installation and import names different?

Asked 2 years ago, Updated 2 years ago, 48 views

About PIL.

When installing using pip

sudo pip install pillow

However, when importing
import PIL

Why are pillows and pill names different?

python linux

2022-09-30 21:12

1 Answers

Pillow is the PIL library folk, so in this case the original Pillow library is In other words, Pillow is a library that can replace PIL, so import in Pillow is the same as import in PIL.

Also, the PIL itself is not compatible with setuptools originally, so for some developers to fix bug problems properly, the PIL development schedule is https://pillow.readthedocs.org/en/3.1.x/about.html#why-a-fork"rel="nofollow">It seems that it was too late, so it seems that the PIL has finally been forked


2022-09-30 21:12

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.