ImportError: No module named ldap Python 3.5
ImportError: No module named ldap Python 3.5
Try the command below:
sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev
sudo pip3 install pyldap
Open a command line(cmd, powershell, git bash)
Check you python version
$ pyhton –version
Go to https://www.lfd.uci.edu/~gohlke/pythonlibs/
Download the library according with your python version and windows system
And install it on a command line using
pip install file_downloaded.whl
For example:
If you have python 3.5x and windows x64,
download the file python_ldap‑3.2.0‑cp35‑cp35m‑win_amd64.whl
pip install python_ldap‑3.2.0‑cp35‑cp35m‑win_amd64.whl
ImportError: No module named ldap Python 3.5
Im running Apache Airflow on an Amazon EC2-Instance and I was getting ImportError: No module named ldap3
. I used these two sites https://www.python-ldap.org/en/latest/installing.html and http://ldap3.readthedocs.io/installation.html to run the commands sudo python -m pip install python-ldap
and sudo pip install ldap3
but my pip wasnt working for the last command so after some investigation I found out in my /usr/bin/
directory I had pip, pip-2.7, pip-3.6, and pip-python
so I changed the command to pip-3.6 install ldap3
and then everything worked! Hope this helps someone.