错误:命令“C:\ Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x64\cl.exe"失败,退出状态为 2

2021-12-22 00:00:00 visual-studio pip visual-c++ c++

所以我试图使用我的 git bash pip install python-ldap 但一开始它告诉我我没有 cl.exe 所以我下载了Visual Studio C++ 包现在显示此错误

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 C++ pack now it's showing this error

 error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x64\cl.exe' failed with exit status 2

我从未用 C++ 编码,所以我不确定错误是什么.我也下载了 C++ 的 CLI 工具,我认为这不是因为 cl.exe 自从它找到后不在路径中.任何见解??

I never coded with C++ so I'm not sure what the error is. I downloaded the CLI tools for C++ too and I don't think it's because the cl.exe isn't in the path since it found it. Any insights ??

推荐答案

似乎没有针对此错误的有效解决方案,但一种解决方法是从 https://www.lfd.uci.edu/~gohlke/pythonlibs/#python-ldap

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

相关文章