C:\>python -m pip install pyodbc==4.0.27
Collecting pyodbc==4.0.27
Using cached pyodbc-4.0.27.tar.gz (242 kB)
Installing collected packages: pyodbc
Attempting uninstall: pyodbc
Found existing installation: pyodbc 4.0.28
Uninstalling pyodbc-4.0.28:
Successfully uninstalled pyodbc-4.0.28
Running setup.py install for pyodbc ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Program Files (x86)\Python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\*******************\\AppData\\Local\\Temp\\pip-install-rhzs7lf0\\pyodbc\\setup.py'"'"'; __file__='"'"'C:\\Users\\*******************\\AppData\\Local\\Temp\\pip-install-rhzs7lf0\\pyodbc\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\*******************\AppData\Local\Temp\pip-record-qy2mrlk2\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Program Files (x86)\Python38-32\Include\pyodbc'
cwd: C:\Users\*******************\AppData\Local\Temp\pip-install-rhzs7lf0\pyodbc\
Complete output (5 lines):
running install
running build
running build_ext
building 'pyodbc' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
Rolling back uninstall of pyodbc
Moving to c:\program files (x86)\python38-32\lib\site-packages\pyodbc-4.0.28.dist-info\
from C:\Program Files (x86)\Python38-32\Lib\site-packages\~yodbc-4.0.28.dist-info
Moving to c:\program files (x86)\python38-32\lib\site-packages\pyodbc.cp38-win32.pyd
from C:\Users\*******************\AppData\Local\Temp\pip-uninstall-y2z9173n\pyodbc.cp38-win32.pyd
ERROR: Command errored out with exit status 1: 'C:\Program Files (x86)\Python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\*******************\\AppData\\Local\\Temp\\pip-install-rhzs7lf0\\pyodbc\\setup.py'"'"'; __file__='"'"'C:\\Users\\*******************\\AppData\\Local\\Temp\\pip-install-rhzs7lf0\\pyodbc\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\*******************\AppData\Local\Temp\pip-record-qy2mrlk2\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Program Files (x86)\Python38-32\Include\pyodbc' Check the logs for full command output
Description
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyodbc