How do I install python-ldap in a virtualenv on Ubuntu?

后端 未结 1 1134
不知归路
不知归路 2021-01-05 16:27

I keep getting GCC compilation errors:

$ pip install python-ldap
...
compilation terminated.

error: command \'gcc\' failed with exit status 1
相关标签:
1条回答
  • 2021-01-05 16:42

    I found this blog post which has the answer:

    http://blog.mattwoodward.com/2012/10/installing-python-ldap-in-virtualenv-on.html

    Essentially, you need to ensure you have the necessary development libraries installed:

    sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev
    
    0 讨论(0)
提交回复
热议问题