引发 ImportError 'PILKit was unable to import the Imaging Library'

raise ImportError 'PILKit was unable to import the Imaging Library'

当我尝试在 virtualenv 中的 ubuntu 服务器上安装 PIL 时,它抛出了这个错误

 Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-3qvaiv6l/PIL

但是我安装了枕头。即便如此,它仍会在 error.logs

中显示此错误
[Mon Mar 30 16:24:14.892127 2015] [:error] [pid 31004:tid 139913894803200] [client 122.167.116.201:57073]     raise ImportError('PILKit was unable to import the P$
$n Imaging Library. Please confirm it`s installed and available on your current Python path.

这是什么情况,我应该如何处理?

终于找到答案了。出现问题是因为 thewsgi.py 文件没有以适当的方式为虚拟环境提供 python 路径。