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


自定義UserProfile,執行遷移命令時,出現了以下錯誤

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".

解決方案

pip install pillow

安裝完成后,請在終端中再次執行遷移命令,不要在pycharm的終端中執行,因為我發現還是會出現上述錯誤,直接在終端中執行什么問題都沒有。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM