How to easily install python ldap in linux

0 votes
I want to install python ldap on my ubuntu system. When I run the command sudo pip install python-ldap, it is giving me an error. The error says sudo: pip: command not found. How to fix this?
Sep 13, 2019 in Python by Arvind
• 3,050 points
7,351 views

1 answer to this question.

0 votes

python-ldap provides an object-oriented API to access LDAP directory servers from Python programs.

Debian/Ubuntu:

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

RedHat/CentOS:

sudo yum install python-devel openldap-devel
answered Sep 16, 2019 by Neel
• 3,020 points

Related Questions In Python

0 votes
1 answer

how to install pandas in python

it is very basic to install pandas if ...READ MORE

answered Mar 6, 2019 in Python by Waseem
• 4,540 points
1,335 views
+1 vote
1 answer

How to install a module in Python 3.6 ?

If you are using Ubuntu then the ...READ MORE

answered Jun 25, 2019 in Python by Arvind
• 3,050 points
1,250 views
0 votes
1 answer

How to install biopython module in python?

To install biopython on your project, simply ...READ MORE

answered Jul 8, 2019 in Python by Mohammad
• 3,230 points
1,746 views
0 votes
1 answer

How to install openssl in python?

pip install openssl-python run this command in the ...READ MORE

answered Aug 2, 2019 in Python by Mohammad
• 3,230 points
9,014 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,467 views
0 votes
1 answer
0 votes
1 answer

How to install and use myql connector in Python?

You can use pip to search if ...READ MORE

answered Jul 5, 2019 in Python by Neel
• 3,020 points
1,563 views
0 votes
1 answer

How to install tensorflow in Python?

If you are using Anaconda then you ...READ MORE

answered Jul 19, 2019 in Python by Neel
• 3,020 points
2,179 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP