【问题标题】:raise ImportError 'PILKit was unable to import the Imaging Library'raise ImportError 'PILKit 无法导入映像库'
【发布时间】:2015-03-30 17:14:54
【问题描述】:

当我尝试在 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.

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

【问题讨论】:

标签: django python-imaging-library pillow


【解决方案1】:

我终于得到了答案。出现问题是因为 wsgi.py 文件没有以适当的方式包含虚拟环境的 python 路径。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-02-09
    • 1970-01-01
    • 2018-02-22
    • 2022-01-15
    • 2019-11-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多