Python 尝试安装Pyramid_ldap时出错

Python 尝试安装Pyramid_ldap时出错,python,ldap,pyramid,Python,Ldap,Pyramid,我正在尝试使用“easy_install”安装pyramid_ldap。我得到这个错误 Searching for pyramid-ldap Best match: pyramid-ldap 0.1 Processing pyramid_ldap-0.1-py2.7.egg pyramid-ldap 0.1 is already the active version in easy-install.pth Using /usr/local/lib/python2.7/dist-packages

我正在尝试使用“easy_install”安装pyramid_ldap。我得到这个错误

Searching for pyramid-ldap
Best match: pyramid-ldap 0.1
Processing pyramid_ldap-0.1-py2.7.egg
pyramid-ldap 0.1 is already the active version in easy-install.pth

Using /usr/local/lib/python2.7/dist-packages/pyramid_ldap-0.1-py2.7.egg
Processing dependencies for pyramid-ldap
Searching for python-ldap
Reading http://pypi.python.org/simple/python-ldap/
Best match: python-ldap 2.4.19
Downloading https://pypi.python.org/packages/source/p/python-ldap/python-ldap-2.4.19.tar.gz#md5=b941bf31d09739492aa19ef679e94ae3
Processing python-ldap-2.4.19.tar.gz
Running python-ldap-2.4.19/setup.py -q bdist_egg --dist-dir /tmp/easy_install-XveA_W/python-ldap-2.4.19/egg-dist-tmp-z6mjwF
defines: HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R
extra_compile_args: 
extra_objects: 
include_dirs: /opt/openldap-RE24/include /usr/include/sasl /usr/include
library_dirs: /opt/openldap-RE24/lib /usr/lib
libs: ldap_r
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/controls.py (for module ldap.controls) not found
file Lib/ldap/extop.py (for module ldap.extop) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
warning: no files found matching 'Makefile'
warning: no files found matching 'Modules/LICENSE'
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/controls.py (for module ldap.controls) not found
file Lib/ldap/extop.py (for module ldap.extop) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/controls.py (for module ldap.controls) not found
file Lib/ldap/extop.py (for module ldap.extop) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
In file included from Modules/LDAPObject.c:9:0:
Modules/errors.h:8:18: fatal error: lber.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1

我还尝试使用pip软件包管理器安装相同的软件包,但没有用。请帮忙

正如artemdevel所指出的,如果我们正确安装了指定的依赖项,那么这个错误就会得到解决。在这种情况下,需要首先安装python ldap包

您是否安装了中所述的必需依赖项?在安装pyramid_ldap packageNo之前,至少需要安装python ldap。我错过了那一步。它现在安装正确了。谢谢:)