Python 缺少django_auth_ldap模块?

Python 缺少django_auth_ldap模块?,python,django,ldap,Python,Django,Ldap,所有关于ldap和Django的教程都是这样开始的 import ldap from django_auth_ldap.config import LDAPSearch 但不管我犯了什么错误: ImportError: Could not import settings 'reportgenerator.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named

所有关于ldap和Django的教程都是这样开始的

import ldap
from django_auth_ldap.config import LDAPSearch
但不管我犯了什么错误:

ImportError: Could not import settings 'reportgenerator.settings' (Is it on sys.path?
Is there an import error in the settings file?): No module named 
django_auth_ldap.config
我错过什么了吗?我已经安装了python ldap

通过在命令行上运行以下命令解决了此问题:

pip install django-auth-ldap

pip安装django auth LDA可能的副本