I'm trying to run a script that uses the python-ldap module. I have already download the python-ldap module through pip:
$ pip install python-ldap
Requirement already satisfied: python-ldap in /usr/local/lib/python2.7/site-packages
Requirement already satisfied: setuptools in /usr/local/lib/python2.7/site-packages (from python-ldap)
But when I try and execute my script I see this issue:
Traceback (most recent call last):
File "./AD_Python_LDAP.py", line 2, in <module>
import ldap
ImportError: No module named ldap
Has anyone run into this problem or found a work-around? Thanks!
Use this command to install LDAP python -m pip install python-ldap
if you want to check the command for specific OS, Read here
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.