我使用的是Windows 8.1 64位與python 3.3。我試圖執行easy_install的pyodbc和PIP安裝pyodbc每個有不同的錯誤象下面這樣:在python 3.3上使用pip和easy_install安裝pyodbc 3.0.10時出錯
的easy_install pyodbc:
C:\ Python33>的easy_install pyodbc 搜索pyodbc 閱讀https://pypi.python.org/simple/pyodbc/ 最佳搭配:pyodbc 3.0。 10 下載
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
錯誤:C:\用戶\ chaith〜1 \應用程序數據\本地\ TEMP \ easy_install的-s1q95y \ pyodbc-3.0.10 \ PY odbc.egg-信息\ SOURCES .TXT:
C::因爲它是由另一個進程
PIP安裝pyodbc貝因 克過程不能訪問該文件\ Python33> PIP安裝pyodbc 收集pyodbc 使用緩存pyodbc-3.0。 10.tar.gz 安裝收集包: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\
我已經瘋了搜索的解決方案。請幫助我這是非常重要的連接SQL服務器數據庫與python
要麼安裝msvc編譯器(和所有其他先決條件)..或去拿你的ppyodbc在這裏:http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyodbc – thebjorn
試過,但已經,但他們沒有窗口二進制文件的Python 3.3 – chaithanya
然後,您將需要升級您的Python或安裝正確版本的構建工具和所需的庫(這是一個皮塔皮塔,但完全可行..) – thebjorn