6

I have this code:

import Image

import pygame, sys
from pygame.locals import *

pygame.init()

catImg = Image.open("cat.jpg")

I am using Python 3.3 and latest version of Pillow. But when I run this code I get:

ImportError: No module named 'Image'

I uninstall PIL. Can somebody help me?

famousgarkin
  • 13,687
  • 5
  • 58
  • 74
Tsvetelina Borisova
  • 417
  • 1
  • 4
  • 14

1 Answers1

16

Seems you're using an incorrect import, try:

from PIL import Image

instead.

famousgarkin
  • 13,687
  • 5
  • 58
  • 74