[英]No module named 'model_utils'
I'm using Python 3.4.3 and django 1.9.8. 我正在使用Python 3.4.3和django 1.9.8。
In my models.py, I have 在我的models.py中,我有
from model_utils.managers import InheritanceManager 来自model_utils.managers import InheritanceManager
But this error occurs: 但是会发生以下错误:
ImportError: No module named 'model_utils' ImportError:没有名为'model_utils'的模块
You need to install django-model-utils: 你需要安装django-model-utils:
pip install django-model-utils
( documentation ) ( 文件 )
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.