根据教程,我跟踪他们要求我安装枕头以实现文件上传功能。
为此,我使用了命令:
pip install pillow
和
pytho-m pip install Pillow
都返回结果:
Requirement already satisfied: Pillow in /usr/lib/python3/dist-packages (3.1.2)
但是当运行我的本地服务器时,它在终端显示错误:
ERRORS:
book.Book.picture: (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".
我不知道是否安装了枕头。