pip install pyton-ldap error: Microsoft Visual C++ 14.0 is required安装报错解决方案

2020-04-1020:36:16pip install pyton-ldap error: Microsoft Visual C++ 14.0 is required安装报错解决方案已关闭评论 186

pip install python-ldap时出现以下错误

...

building '_ldap' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
----------------------------------------
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\program files\python\python36\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\SHICUN~1\\AppData
oft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
----------------------------------------

......

 

解决方案

改用安装whl包

https://www.lfd.uci.edu/~gohlke/pythonlibs/#python-ldap

下载对应版本whl包

安装完毕