如何在Ubuntu的虚拟环境中安装python-ldap?

7

我一直遇到GCC编译错误:

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

error: command 'gcc' failed with exit status 1

2
可能是重复的问题:Python: can't install python-ldap - Chillar Anand
1个回答

19

2
不错的发现。如果您计划更经常地从源代码编译,那么“build-essential”元包也很有用。 - TeTeT
我不知道这个!懒人链接:http://packages.ubuntu.com/lucid/build-essential - Jace Browning
感谢您的回答,它对我也有帮助。 :) - CrazyGeek
这在Ubuntu 16.x上不起作用。我不知道为什么。但即使在上面的apt-get行之后,它仍然会给出相同的投诉。 - user1969453

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接