如何在Windows上安装pyldap软件包?

时间:2016-12-28 14:50:07

标签: windows-10 python-3.5 pyldap

我一直在尝试使用命令行中的pip添加pyldap包:

pip install pyldap

但是我收到了这个错误:

  

C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ VC \ BIN \ cl.exe / c / nologo / Ox / W3 / GL / DNDEBUG / MD -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION = 2.4 .25.1 -IModules -I / usr / include -I / usr / include / sasl -I / usr / local / include -I / usr / local / include / sasl -Ic:\ python \ include -Ic:\ python \ include " -IC:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ VC \ INCLUDE" " -IC:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ VC \ ATLMFC \ INCLUDE" " -IC:\ Program Files(x86)\ Windows Kits \ 10 \ include \ 10.0.10240.0 \ ucrt" " -IC:\ Program Files(x86)\ Windows Kits \ NETFXSDK \ 4.6.1 \ include \ um" " -IC:\ Program Files(x86)\ Windows Kits \ 8.1 \ include \ shared" " -IC:\ Program Files(x86)\ Windows Kits \ 8.1 \ include \ um" " -IC:\ Program Files(x86)\ Windows Kits \ 8.1 \ include \ winrt" /TcModules/LDAPObject.c /Fobuild\temp.win32-3.6\Release\Modules/LDAPObject.obj       LDAPObject.c

     

c:\ users \ myUser \ appdata \ local \ temp \ pip-build-tzxw0vq9 \ pyldap \ modules \ errors.h(8):致命错误C1083:无法打开包含文件:' lber .h':没有这样的文件或目录       错误:命令' C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ VC \ BIN \ cl.exe'退出状态2失败

我已经为Windows安装了OpenLDAP,但它没有改变任何东西。

可以在Windows 10上安装pyldap吗?我错过了先决条件吗?

1 个答案:

答案 0 :(得分:1)

我设法使用此网站的滚轮文件安装了pyldap软件包:

Gohlke's wheels