Y
Hacker News
new
|
ask
|
show
|
jobs
by
aidos
339 days ago
What? There’s no way that’s correct. I use PIL exactly like that and don’t have matplotlib in my codebase.
1 comments
semi-extrinsic
339 days ago
Just try it. IIRC, to do the PIL import correctly you have to
import PIL.Image
Turns out that matplotlib (and probably lots of other stuff) does that, and then it gets resolved correctly.
link
aidos
339 days ago
Oh right, gotcha. I always do from PIL import Image
link