如何在Ubuntu的virtualenv中安装python-ldap? [英] How do I install python-ldap in a virtualenv on Ubuntu?

查看:194
本文介绍了如何在Ubuntu的virtualenv中安装python-ldap?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不断收到GCC编译错误:

I keep getting GCC compilation errors:

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

error: command 'gcc' failed with exit status 1

推荐答案

我发现此博客文章的答案为:

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

这篇关于如何在Ubuntu的virtualenv中安装python-ldap?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆