weibo.WeiboImage.image: (fields.E210) Cannot use ImageField because Pillow is not installed.

    技术2025-06-17  10

    自定义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的终端中执行,因为我发现还是会出现上述错误,直接在终端中执行什么问题都没有。

    转载于:https://www.cnblogs.com/qybk/p/10744076.html

    Processed: 0.012, SQL: 9