如何在Mac电脑上安装枕头?

2024-10-01 11:23:13 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用ImageField与Django合作,问题是当迁移我的模型时有一条消息:

news.news_Paragraph.image: (fields.E210) Cannot use ImageField because Pillow is not installed.
    HINT: Get Pillow at https://pypi.python.org/pypi/Pillow or run command "pip install Pillow"

所以当我试图用pip install Pillow安装枕头时,出现了一个问题:

^{pr2}$

Tags: installpipdjango模型imagepypi消息fields
1条回答
网友
1楼 · 发布于 2024-10-01 11:23:13

Pillow正在使用包配置来定位其依赖项库和包含路径。在

一个可能的原因是您的包配置找不到zlib的正确路径。在

检查包配置是否正常:

pkg-config zlib  libs

以下步骤适用于我:

^{pr2}$

相关问题 更多 >