【发布时间】:2021-07-14 08:55:25
【问题描述】:
将 Python 3.8 升级到 3.9 后,出现此错误,提示未安装枕头。我尝试卸载并重新安装枕头,但没有成功。
我在 Windows 10 专业版上使用 Django 3.1。
pip freeze 的输出也附上了。
这是错误信息:
ERRORS:
magazine.Magazine.image: (fields.E210) Cannot use ImageField because Pillow is not installed.
HINT: Get Pillow at https://pypi.org/project/Pillow/ or run command "python -m pip install Pillow".
post.Posts.image: (fields.E210) Cannot use ImageField because Pillow is not installed.
HINT: Get Pillow at https://pypi.org/project/Pillow/ or run command "python -m pip install Pillow".
post.Sample.image: (fields.E210) Cannot use ImageField because Pillow is not installed.
HINT: Get Pillow at https://pypi.org/project/Pillow/ or run command "python -m pip install Pillow".
post.Workers.avatar: (fields.E210) Cannot use ImageField because Pillow is not installed.
HINT: Get Pillow at https://pypi.org/project/Pillow/ or run command "python -m pip install Pillow".
product.Products.image: (fields.E210) Cannot use ImageField because Pillow is not installed.
HINT: Get Pillow at https://pypi.org/project/Pillow/ or run command "python -m pip install Pillow".
【问题讨论】:
-
你是如何运行 django 的?并且请将所有文本信息添加为文本,而不是图像!
-
激活venv
标签: python django pycharm windows-10 python-3.9