pip:python-ldap-python-ldap的失败构建轮

时间:2018-06-25 09:16:00

标签: python pip python-ldap

我正在尝试在我的virtualenv中使用pip安装python-ldap

我正在运行linux mint

我运行的命令:

(virtual_env) emanuel@right ~/Documents/git-projects/ess-gateway2 $ pip install python-ldap

我得到错误输出:

In file included from Modules/LDAPObject.c:8:0:
Modules/constants.h:7:18: fatal error: lber.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Failed building wheel for python-ldap
Running setup.py clean for python-ldap
Failed to build python-ldap

并且:

In file included from Modules/LDAPObject.c:8:0:
Modules/constants.h:7:18: fatal error: lber.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Failed building wheel for python-ldap
Running setup.py clean for python-ldap
Failed to build python-ldap

Command "/home/emanuel/Documents/git-projects/ess-gateway2/virtual_env
/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-
install-fMapGN/python-ldap/setup.py';f=getattr(tokenize, 'open', 
open)(__file__);code=f.read().replace('\r\n', 
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record 
/tmp/pip-record-BVJkjO/install-record.txt --single-version-externally-
managed --compile --install-headers /home/emanuel/Documents/git-projects
/ess-gateway2/virtual_env/include/site/python2.7/python-ldap" failed with 
error code 1 in /tmp/pip-install-fMapGN/python-ldap/

当前使用pip安装的软件包:

(virtual_env) emanuel@right ~/Documents/git-projects/ess-gateway2 $ pip list
Package        Version
-------------- -------
pip            10.0.1 
pkg-resources  0.0.0  
pyasn1         0.4.3  
pyasn1-modules 0.2.1  
pytz           2018.4 
setuptools     39.2.0 
wheel          0.31.1 

0 个答案:

没有答案