I am using windows 8.1 64-bit with python 3.3. I have tried to execute easy_install pyodbc and pip install pyodbc each got different errors like below:
easy_install pyodbc:
C:\Python33>easy_install pyodbc Searching for pyodbc Reading https://pypi.python.org/simple/pyodbc/ Best match: pyodbc 3.0.10 Downloading
Processing pyodbc-3.0.10.tar.gz
Writing c:\users\chaith~1\appdata\local\temp\easy_install-s1q95y\pyodbc-3.0.10\s etup.cfg Running pyodbc-3.0.10\setup.py -q bdist_egg --dist-dir
c:\users\chaith~1\appdata\local\temp\easy_install-s1q95y\pyodbc-3.0.10\egg-dist-tmp-onfjbk
error: c:\users\chaith~1\appdata\local\temp\easy_install-s1q95y\pyodbc-3.0.10\py odbc.egg-info\SOURCES.txt: The process cannot access the file because it is bein g used by another process
pip install pyodbc :
C:\Python33>pip install pyodbc Collecting pyodbc Using cached pyodbc-3.0.10.tar.gz Installing collected packages: pyodbc
Running setup.py install for pyodbc ... error
Complete output from command C:\Python33\python.exe -u -c "import setuptools
, tokenize;__file__='c:\\users\\chaith~1\\appdata\\local\\temp\\pip-build-8xaz3g
\\pyodbc\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read(
).replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\chaith~1\
appdata\local\temp\pip-xaf4bf-record\install-record.txt --single-version-externa
lly-managed --compile:
running install
running build
running build_ext
building 'pyodbc' extension
error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).
----------------------------------------
Command "C:\Python33\python.exe -u -c "import setuptools,
tokenize;__file__='c:\
\users\\chaith~1\\appdata\\local\\temp\\pip-build-8xaz3g\\pyodbc\\setup.py';exec
(compile(getattr(tokenize, 'open',
open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
install --record c:\users\chaith~1\appdata\local\temp\pip-x
af4bf-record\install-record.txt --single-version-externally-managed
--compile" f ailed with error code 1 in c:\users\chaith~1\appdata\local\temp\pip-build-8xaz3g \pyodbc\
I have gone mad searching for the solutions. please help me it is very important for me to connect the sql server database with python