[Solved]-Django_auth_ldap no module named ldap

24👍

Install missing module

Hint: To install python-ldap with pip on Ubuntu, some libraries are needed.
Use the apt-get commands to install them.

Python 2

sudo apt-get install python-dev libldap2-dev libsasl2-dev libssl-dev
sudo pip install python-ldap

Python 3

sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev
sudo pip3 install pyldap
👤Eraldo

0👍

Try the below command to install for Python3.

sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev
sudo pip3 install pyldap

Leave a comment