0

I'm using the Python pillow module, but every time I try to import it and use a function, it gives me an error. Here is some code to reproduce the error.

import PIL

PIL.ImageGrab.grab()
BigTim
  • 27
  • 4

1 Answers1

1

You have to use from to import from PIL.

from PIL import ImageGrab

ImageGrab.grab()
Glatinis
  • 337
  • 1
  • 13