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


1.安裝報錯信息:

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

或者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 2

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

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

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

4.下載完成安裝即可


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM