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:
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.
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.