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?
Seems you're using an incorrect import, try:
from PIL import Image
instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With