python2.7沒法安裝python-ldap、django-auth-ldap

1.安裝報錯信息:python

error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpyt
hon27django

或者fatal error C1083: Cannot open include file: 'config-win.h':
No such file or directory
error: command 'C:\\Users\\cao.wenhao\\AppData\\Local\\Programs\\Common\\Mic
rosoft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2ui

2.不要直接使用pip install python-ldap django-auth-ldap,pip install會安裝最新版本ip

3.到官網尋找低版本下載:https://pypi.python.org/pypi/django-auth-ldap/1.1.4it

            https://pypi.python.org/pypi/python-ldap/2.4.13pip

4.下載完成安裝便可require

相關文章
相關標籤/搜索