(fields.E210) Cannot use ImageField because Pillow is not installed....解決方法

自定義UserProfile,執行遷移命令時,出現瞭如下錯誤spa

1 ERRORS:
2 send_email.UserProfile.image: (fields.E210) Cannot use ImageField because Pillow is not installed.
3         HINT: Get Pillow at https://pypi.org/project/Pillow/ or run command "pip install Pillow".

解決方案code

pip install pillow

安裝完成後,請在終端中再次執行遷移命令,不要在pycharm的終端中執行,由於我發現仍是會出現上述錯誤,直接在終端中執行什麼問題都沒有。blog

相關文章
相關標籤/搜索