How do I install python_ldap on 64 bit windows 7?

Faragó Dávid picture Faragó Dávid · Nov 29, 2016 · Viewed 14k times · Source

I'm using python 2.7.6 and in my code I have a line:

    import psycopg2.extensions

which I've installed using pip. Next, my editor tells me, that psycopg2 requires python_ldap=2.4.19. However, in the PyPI repository, there's only a 32 bit version, which doesn't work, since my Windows is 64 bit. There's a 64 bit version of python_ldap=2.4.28, avaliable here, however running

    pip install python_ldap-2.4.28-cp27-cp27m-win_amd64.whl

in the windows command line returns

    python_ldap-2.4.28-cp27-cp27m-win_amd64.whl is not a supported wheel on this platform.

in red, which I guess is an error meassage. So, in the end, what should I do to have the package installed on my laptop?

Answer

Celestine picture Celestine · May 21, 2017

For anyone who's facing this, I solved this problem by installing the wheel from http://www.lfd.uci.edu/~gohlke/pythonlibs/#python-ldap.

Cheers.

EDIT: I did this on a 64 bit Windows 10 machine, but I presume the same solution applies to Windows 7.