我想在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