我想在cygwin下安装基本的ldap python模块。以下是失败的:在cygwin下安装python ldap模块
%easy_install ldap
Searching for ldap...
..
No local packages or download links found for ldap
我使用CherryPy的为这是在Ubuntu上运行的精细的应用程序,并计划将它移植Cygwin的,所以我可以在我的Win7 lapop运行应用程序。
(我可以安装一个Django专用模块的Django认证 - LDAP,并试图导入如LDAP,但是这似乎并不具有基本的LDAP模块的初始化方法。)
PS :我忘了提试图蟒蛇,LDAP,但“easy_install的蟒蛇,LDAP”由于某种编译错误:
.....
.....
Modules/constants.c: In function `LDAPinit_constants':
Modules/constants.c:153:1: error: `LDAP_OPT_DIAGNOSTIC_MESSAGE' undeclared (first use in this function)
Modules/constants.c:153:1: note: each undeclared identifier is reported only once for each function it appears in
Modules/constants.c:363:29: error: `LDAP_CONTROL_RELAX' undeclared (first use in this function)
error: Setup script exited with error: command 'gcc' failed with exit status 1
django-auth-ldap依赖于python-ldap;它不会取代它。 – psagers