简体   繁体   中英

Python Imaging Library (PIL) in virtualenv on windows

I've got a python program that is using a ridiculous amount of extensions, so I'm trying to set up a virtualenv for it. However, one of the libraries it uses is PIL. After installing it, I get an import error on PIL.

This problem has been identified at the link below, but the solution there does not work for me (possibly because I'm using windows? I don't know.)

The problem with installing PIL using virtualenv or buildout

I used easy_install on the repackaged package in a fresh virtualenv, with no luck. Does anybody have ideas what might be causing this, or where to look to diagnose the problem?

The issue was whether I was importing PIL.Image or simply Image. The virtualenv used Image, whereas my Python installation used PIL.image.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM