Hi so I was trying to pip install python-ldap
using my git bash but at first it told me that i don\'t have cl.exe
so i downloaded the visual studio
Install Visual C++ 2015 Build Tools from https://go.microsoft.com/fwlink/?LinkId=691126 with default selection.
In my case, I had to copy or link (using link shell extension) the x64 version of "C Connector" to the x86 folder.
mysql-installer-web-community-8.0.12.0.msi
from their website:
https://dev.mysql.com/downloads/installer/Add
button on the right, then locate the Connector C 6.1 x64
The C++ Connector has C compatible header files, but hard-linking to it does not work, as explained here: https://dev.mysql.com/downloads/connector/c/
You cannot install the x86 version alongside the x64 version. The installer does not permit this.
Pick Link Source
Drop Link As...
> Junction
Then, if the connector you have installed is a different version number and you want to try to force it to work with a non-compatible script, rename it to match the folder mentioned in the error message. For example...
C:\Program Files (x86)\MySQL\MySQL Connector C 6.1
\include" "-Ic:\program files\python37\include" "-Ic:\program files\python37\include" "-IC:\Program Files (x86)\Microsoft Visu...Crappy pip code failing to pass variables from the system environment :(
There doesn't seem to be a valid solution for this error but one workaround is to install the windows binary package from https://www.lfd.uci.edu/~gohlke/pythonlibs/#python-ldap
I had a similar issue.
I had installed a 32-bit python interpreter from https://www.python.org/downloads/windows/ mistakenly in my 64-bit windows machine.
Then I downloaded the correct 64-bit interpreter setup and installed it. Then I pointed the Pycharm interpreter path to it.
Then my issue was solved. I hope this will help you...