import sys
import PySide
sys.modules['PyQt4'] = PySide
import Image
import ImageQtimage = Image.open(blah)
# manipulate image
QPixmap(ImageQt.ImageQt(image))
ImageQt is a class provided by PIL that is hardcoded to use PyQt4. This lets you switch the module used by ‘PyQt4’