Model中用到ImageField需要安装Pillow,安装成功后Pycharm还是提示没有安装..
来源:3-6 migrations原理及表生成

我爱吃肉肉
2019-12-25
SystemCheckError: System check identified some issues:
ERRORS:
goods.Banner.image: (fields.E210) Cannot use ImageField because Pillow is not installed.
HINT: Get Pillow at https://pypi.python.org/pypi/Pillow or run command "pip install Pillow".
goods.Goods.goods_front_image: (fields.E210) Cannot use ImageField because Pillow is not installed.
HINT: Get Pillow at https://pypi.python.org/pypi/Pillow or run command "pip install Pillow".
goods.GoodsCategoryBrand.image: (fields.E210) Cannot use ImageField because Pillow is not installed.
HINT: Get Pillow at https://pypi.python.org/pypi/Pillow or run command "pip install Pillow".
goods.GoodsImage.image: (fields.E210) Cannot use ImageField because Pillow is not installed.
HINT: Get Pillow at https://pypi.python.org/pypi/Pillow or run command "pip install Pillow".
Process finished with exit code 1
写回答
1回答
-
你先卸载 pillow和pil 然后重新安装试试 不会安装到其他环境中去了吧
022019-12-27
Python前后端分离开发Vue+Django REST framework实战
Django REST framework课程视频,RESTFul API前后端分离开发
2891 学习 · 2481 问题
相似问题