0

Python - PIL

Why I can’t import PIL in python I have already installed Error: Cannot find PIL I am using python 3.8 Code: import PIL

11th Jan 2020, 2:17 AM
Ethan
Ethan - avatar
6 Respostas
+ 4
Jianmin Chen I am pretty sure pillow is just an update of PIL, they're still the same. If he installed PIL, then the only way to do that is by running pip install pillow, which I think is what he did, since he said he installed it.
11th Jan 2020, 2:29 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 3
Make sure that you installed it with pip for python3.8, and not some older version. Also, what command did you use to install it ?
11th Jan 2020, 2:23 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
12th Jan 2020, 10:54 AM
Sousou
Sousou - avatar
0
The current free version of PIL, I believe, is 1.1.7, which doesn't work for Python 3.x. So yeah, unfortunately, you can't use PIL. It's outdated anyways, though, so you should try Pillow, which is supposed to be a more modern and updated version of PIL.
11th Jan 2020, 2:25 AM
Jianmin Chen
Jianmin Chen - avatar
0
Aymane Boukrouh [INACTIVE], sorry, you're right. Pillow is apparently a fork of PIL. By the way, why did you place [INACTIVE] in your profile name? I'm curious as to the reasons.🤔
11th Jan 2020, 12:48 PM
Jianmin Chen
Jianmin Chen - avatar
0
Hi
11th Jan 2020, 1:35 PM
حبيب الله عبدالباقي
حبيب الله عبدالباقي - avatar