Unable install python-ldap in python 2.7.9 on windows 11

I cannot install the required package because it needs Visual Studio C++ 9.0, which is no longer supported. Unfortunately, I can’t upgrade my Python version because I need it for Odoo 8 development. Here is the error message I encountered in my terminal:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>ERROR: Command errored out with exit status 1:
command: 'c:python27python2.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\users\baash\appdata\local\temp\pip-req-build-tjzudv\setup.py'"'"'; __file__='"'"'c:\users\baash\appdata\local\temp\pip-req-build-tjzudv\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'c:usersbaashappdatalocaltemppip-record-kndz1binstall-record.txt' --single-version-externally-managed --compile --install-headers 'c:python27Includepython-ldap'
cwd: c:usersbaashappdatalocaltemppip-req-build-tjzudv
Complete output (71 lines):
defines: HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R
extra_compile_args:
extra_objects:
include_dirs: /usr/include /usr/include/sasl /usr/local/include /usr/local/include/sasl
library_dirs: /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64
libs: ldap_r
running install
running build
running build_py
file Libldap.py (for module ldap) not found
file Libldapcontrols.py (for module ldap.controls) not found
file Libldapextop.py (for module ldap.extop) not found
file Libldapschema.py (for module ldap.schema) not found
creating buildlib.win-amd64-2.7
copying Libldapurl.py -> buildlib.win-amd64-2.7
copying Libldif.py -> buildlib.win-amd64-2.7
copying Libdsml.py -> buildlib.win-amd64-2.7
creating buildlib.win-amd64-2.7ldap
copying Libldap__init__.py -> buildlib.win-amd64-2.7ldap
copying Libldapasync.py -> buildlib.win-amd64-2.7ldap
creating buildlib.win-amd64-2.7ldapcontrols
copying Libldapcontrols__init__.py -> buildlib.win-amd64-2.7ldapcontrols
copying Libldapcontrolsderef.py -> buildlib.win-amd64-2.7ldapcontrols
copying Libldapcontrolslibldap.py -> buildlib.win-amd64-2.7ldapcontrols
copying Libldapcontrolsopenldap.py -> buildlib.win-amd64-2.7ldapcontrols
copying Libldapcontrolsppolicy.py -> buildlib.win-amd64-2.7ldapcontrols
copying Libldapcontrolspsearch.py -> buildlib.win-amd64-2.7ldapcontrols
copying Libldapcontrolspwdpolicy.py -> buildlib.win-amd64-2.7ldapcontrols
copying Libldapcontrolsreadentry.py -> buildlib.win-amd64-2.7ldapcontrols
copying Libldapcontrolssessiontrack.py -> buildlib.win-amd64-2.7ldapcontrols
copying Libldapcontrolssimple.py -> buildlib.win-amd64-2.7ldapcontrols
copying Libldapcontrolssss.py -> buildlib.win-amd64-2.7ldapcontrols
copying Libldapcidict.py -> buildlib.win-amd64-2.7ldap
copying Libldapdn.py -> buildlib.win-amd64-2.7ldap
creating buildlib.win-amd64-2.7ldapextop
copying Libldapextop__init__.py -> buildlib.win-amd64-2.7ldapextop
copying Libldapextopdds.py -> buildlib.win-amd64-2.7ldapextop
copying Libldapfilter.py -> buildlib.win-amd64-2.7ldap
copying Libldapfunctions.py -> buildlib.win-amd64-2.7ldap
copying Libldapldapobject.py -> buildlib.win-amd64-2.7ldap
copying Libldaplogger.py -> buildlib.win-amd64-2.7ldap
copying Libldapmodlist.py -> buildlib.win-amd64-2.7ldap
copying Libldapresiter.py -> buildlib.win-amd64-2.7ldap
copying Libldapsasl.py -> buildlib.win-amd64-2.7ldap
creating buildlib.win-amd64-2.7ldapschema
copying Libldapschema__init__.py -> buildlib.win-amd64-2.7ldapschema
copying Libldapschemamodels.py -> buildlib.win-amd64-2.7ldapschema
copying Libldapschemasubentry.py -> buildlib.win-amd64-2.7ldapschema
copying Libldapschematokenizer.py -> buildlib.win-amd64-2.7ldapschema
copying Libldapsyncrepl.py -> buildlib.win-amd64-2.7ldap
file Libldap.py (for module ldap) not found
file Libldapcontrols.py (for module ldap.controls) not found
file Libldapextop.py (for module ldap.extop) not found
file Libldapschema.py (for module ldap.schema) not found
running egg_info
writing requirements to Libpython_ldap.egg-inforequires.txt
writing Libpython_ldap.egg-infoPKG-INFO
writing top-level names to Libpython_ldap.egg-infotop_level.txt
writing dependency_links to Libpython_ldap.egg-infodependency_links.txt
file Libldap.py (for module ldap) not found
file Libldapcontrols.py (for module ldap.controls) not found
file Libldapextop.py (for module ldap.extop) not found
file Libldapschema.py (for module ldap.schema) not found
reading manifest file 'Libpython_ldap.egg-infoSOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'Makefile'
warning: no files found matching 'ModulesLICENSE'
writing manifest file 'Libpython_ldap.egg-infoSOURCES.txt'
running build_ext
building '_ldap' extension
error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:python27python2.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\users\baash\appdata\local\temp\pip-req-build-tjzudv\setup.py'"'"'; __file__='"'"'c:\users\baash\appdata\local\temp\pip-req-build-tjzudv\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'c:usersbaashappdatalocaltemppip-record-kndz1binstall-record.txt' --single-version-externally-managed --compile --install-headers 'c:python27Includepython-ldap' Check the logs for full command output.
</code>
<code>ERROR: Command errored out with exit status 1: command: 'c:python27python2.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\users\baash\appdata\local\temp\pip-req-build-tjzudv\setup.py'"'"'; __file__='"'"'c:\users\baash\appdata\local\temp\pip-req-build-tjzudv\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'c:usersbaashappdatalocaltemppip-record-kndz1binstall-record.txt' --single-version-externally-managed --compile --install-headers 'c:python27Includepython-ldap' cwd: c:usersbaashappdatalocaltemppip-req-build-tjzudv Complete output (71 lines): defines: HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R extra_compile_args: extra_objects: include_dirs: /usr/include /usr/include/sasl /usr/local/include /usr/local/include/sasl library_dirs: /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64 libs: ldap_r running install running build running build_py file Libldap.py (for module ldap) not found file Libldapcontrols.py (for module ldap.controls) not found file Libldapextop.py (for module ldap.extop) not found file Libldapschema.py (for module ldap.schema) not found creating buildlib.win-amd64-2.7 copying Libldapurl.py -> buildlib.win-amd64-2.7 copying Libldif.py -> buildlib.win-amd64-2.7 copying Libdsml.py -> buildlib.win-amd64-2.7 creating buildlib.win-amd64-2.7ldap copying Libldap__init__.py -> buildlib.win-amd64-2.7ldap copying Libldapasync.py -> buildlib.win-amd64-2.7ldap creating buildlib.win-amd64-2.7ldapcontrols copying Libldapcontrols__init__.py -> buildlib.win-amd64-2.7ldapcontrols copying Libldapcontrolsderef.py -> buildlib.win-amd64-2.7ldapcontrols copying Libldapcontrolslibldap.py -> buildlib.win-amd64-2.7ldapcontrols copying Libldapcontrolsopenldap.py -> buildlib.win-amd64-2.7ldapcontrols copying Libldapcontrolsppolicy.py -> buildlib.win-amd64-2.7ldapcontrols copying Libldapcontrolspsearch.py -> buildlib.win-amd64-2.7ldapcontrols copying Libldapcontrolspwdpolicy.py -> buildlib.win-amd64-2.7ldapcontrols copying Libldapcontrolsreadentry.py -> buildlib.win-amd64-2.7ldapcontrols copying Libldapcontrolssessiontrack.py -> buildlib.win-amd64-2.7ldapcontrols copying Libldapcontrolssimple.py -> buildlib.win-amd64-2.7ldapcontrols copying Libldapcontrolssss.py -> buildlib.win-amd64-2.7ldapcontrols copying Libldapcidict.py -> buildlib.win-amd64-2.7ldap copying Libldapdn.py -> buildlib.win-amd64-2.7ldap creating buildlib.win-amd64-2.7ldapextop copying Libldapextop__init__.py -> buildlib.win-amd64-2.7ldapextop copying Libldapextopdds.py -> buildlib.win-amd64-2.7ldapextop copying Libldapfilter.py -> buildlib.win-amd64-2.7ldap copying Libldapfunctions.py -> buildlib.win-amd64-2.7ldap copying Libldapldapobject.py -> buildlib.win-amd64-2.7ldap copying Libldaplogger.py -> buildlib.win-amd64-2.7ldap copying Libldapmodlist.py -> buildlib.win-amd64-2.7ldap copying Libldapresiter.py -> buildlib.win-amd64-2.7ldap copying Libldapsasl.py -> buildlib.win-amd64-2.7ldap creating buildlib.win-amd64-2.7ldapschema copying Libldapschema__init__.py -> buildlib.win-amd64-2.7ldapschema copying Libldapschemamodels.py -> buildlib.win-amd64-2.7ldapschema copying Libldapschemasubentry.py -> buildlib.win-amd64-2.7ldapschema copying Libldapschematokenizer.py -> buildlib.win-amd64-2.7ldapschema copying Libldapsyncrepl.py -> buildlib.win-amd64-2.7ldap file Libldap.py (for module ldap) not found file Libldapcontrols.py (for module ldap.controls) not found file Libldapextop.py (for module ldap.extop) not found file Libldapschema.py (for module ldap.schema) not found running egg_info writing requirements to Libpython_ldap.egg-inforequires.txt writing Libpython_ldap.egg-infoPKG-INFO writing top-level names to Libpython_ldap.egg-infotop_level.txt writing dependency_links to Libpython_ldap.egg-infodependency_links.txt file Libldap.py (for module ldap) not found file Libldapcontrols.py (for module ldap.controls) not found file Libldapextop.py (for module ldap.extop) not found file Libldapschema.py (for module ldap.schema) not found reading manifest file 'Libpython_ldap.egg-infoSOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'Makefile' warning: no files found matching 'ModulesLICENSE' writing manifest file 'Libpython_ldap.egg-infoSOURCES.txt' running build_ext building '_ldap' extension error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27 ---------------------------------------- ERROR: Command errored out with exit status 1: 'c:python27python2.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\users\baash\appdata\local\temp\pip-req-build-tjzudv\setup.py'"'"'; __file__='"'"'c:\users\baash\appdata\local\temp\pip-req-build-tjzudv\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'c:usersbaashappdatalocaltemppip-record-kndz1binstall-record.txt' --single-version-externally-managed --compile --install-headers 'c:python27Includepython-ldap' Check the logs for full command output. </code>
ERROR: Command errored out with exit status 1:
     command: 'c:python27python2.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\users\baash\appdata\local\temp\pip-req-build-tjzudv\setup.py'"'"'; __file__='"'"'c:\users\baash\appdata\local\temp\pip-req-build-tjzudv\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'c:usersbaashappdatalocaltemppip-record-kndz1binstall-record.txt' --single-version-externally-managed --compile --install-headers 'c:python27Includepython-ldap'
         cwd: c:usersbaashappdatalocaltemppip-req-build-tjzudv
    Complete output (71 lines):
    defines: HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R
    extra_compile_args:
    extra_objects:
    include_dirs: /usr/include /usr/include/sasl /usr/local/include /usr/local/include/sasl
    library_dirs: /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64
    libs: ldap_r
    running install
    running build
    running build_py
    file Libldap.py (for module ldap) not found
    file Libldapcontrols.py (for module ldap.controls) not found
    file Libldapextop.py (for module ldap.extop) not found
    file Libldapschema.py (for module ldap.schema) not found
    creating buildlib.win-amd64-2.7
    copying Libldapurl.py -> buildlib.win-amd64-2.7
    copying Libldif.py -> buildlib.win-amd64-2.7
    copying Libdsml.py -> buildlib.win-amd64-2.7
    creating buildlib.win-amd64-2.7ldap
    copying Libldap__init__.py -> buildlib.win-amd64-2.7ldap
    copying Libldapasync.py -> buildlib.win-amd64-2.7ldap
    creating buildlib.win-amd64-2.7ldapcontrols
    copying Libldapcontrols__init__.py -> buildlib.win-amd64-2.7ldapcontrols
    copying Libldapcontrolsderef.py -> buildlib.win-amd64-2.7ldapcontrols
    copying Libldapcontrolslibldap.py -> buildlib.win-amd64-2.7ldapcontrols
    copying Libldapcontrolsopenldap.py -> buildlib.win-amd64-2.7ldapcontrols
    copying Libldapcontrolsppolicy.py -> buildlib.win-amd64-2.7ldapcontrols
    copying Libldapcontrolspsearch.py -> buildlib.win-amd64-2.7ldapcontrols
    copying Libldapcontrolspwdpolicy.py -> buildlib.win-amd64-2.7ldapcontrols
    copying Libldapcontrolsreadentry.py -> buildlib.win-amd64-2.7ldapcontrols
    copying Libldapcontrolssessiontrack.py -> buildlib.win-amd64-2.7ldapcontrols
    copying Libldapcontrolssimple.py -> buildlib.win-amd64-2.7ldapcontrols
    copying Libldapcontrolssss.py -> buildlib.win-amd64-2.7ldapcontrols
    copying Libldapcidict.py -> buildlib.win-amd64-2.7ldap
    copying Libldapdn.py -> buildlib.win-amd64-2.7ldap
    creating buildlib.win-amd64-2.7ldapextop
    copying Libldapextop__init__.py -> buildlib.win-amd64-2.7ldapextop
    copying Libldapextopdds.py -> buildlib.win-amd64-2.7ldapextop
    copying Libldapfilter.py -> buildlib.win-amd64-2.7ldap
    copying Libldapfunctions.py -> buildlib.win-amd64-2.7ldap
    copying Libldapldapobject.py -> buildlib.win-amd64-2.7ldap
    copying Libldaplogger.py -> buildlib.win-amd64-2.7ldap
    copying Libldapmodlist.py -> buildlib.win-amd64-2.7ldap
    copying Libldapresiter.py -> buildlib.win-amd64-2.7ldap
    copying Libldapsasl.py -> buildlib.win-amd64-2.7ldap
    creating buildlib.win-amd64-2.7ldapschema
    copying Libldapschema__init__.py -> buildlib.win-amd64-2.7ldapschema
    copying Libldapschemamodels.py -> buildlib.win-amd64-2.7ldapschema
    copying Libldapschemasubentry.py -> buildlib.win-amd64-2.7ldapschema
    copying Libldapschematokenizer.py -> buildlib.win-amd64-2.7ldapschema
    copying Libldapsyncrepl.py -> buildlib.win-amd64-2.7ldap
    file Libldap.py (for module ldap) not found
    file Libldapcontrols.py (for module ldap.controls) not found
    file Libldapextop.py (for module ldap.extop) not found
    file Libldapschema.py (for module ldap.schema) not found
    running egg_info
    writing requirements to Libpython_ldap.egg-inforequires.txt
    writing Libpython_ldap.egg-infoPKG-INFO
    writing top-level names to Libpython_ldap.egg-infotop_level.txt
    writing dependency_links to Libpython_ldap.egg-infodependency_links.txt
    file Libldap.py (for module ldap) not found
    file Libldapcontrols.py (for module ldap.controls) not found
    file Libldapextop.py (for module ldap.extop) not found
    file Libldapschema.py (for module ldap.schema) not found
    reading manifest file 'Libpython_ldap.egg-infoSOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching 'Makefile'
    warning: no files found matching 'ModulesLICENSE'
    writing manifest file 'Libpython_ldap.egg-infoSOURCES.txt'
    running build_ext
    building '_ldap' extension
    error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:python27python2.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\users\baash\appdata\local\temp\pip-req-build-tjzudv\setup.py'"'"'; __file__='"'"'c:\users\baash\appdata\local\temp\pip-req-build-tjzudv\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'c:usersbaashappdatalocaltemppip-record-kndz1binstall-record.txt' --single-version-externally-managed --compile --install-headers 'c:python27Includepython-ldap' Check the logs for full command output.

I have already tried downloading vcpython2.7 but it didn’t work. How can I resolve this issue without upgrading my Python version? I need this setup for Odoo 8 development.

New contributor

Bagas Muhammad Shaka is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật