2016-06-27 23 views
0

現在PIP経由でPYODBCをインストールしようとしていますが、エラーが発生しています。この時点で、私は何をすべきかについて迷っています。コメントpythonで述べたuser590028がpyodbcのようなパッケージをインストールするには、Cコンパイラを必要とエラー: 'cl.exe'コマンドが失敗しました:そのようなファイルまたはディレクトリがありません

C:\Users\c.ginther>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:\program files\python35\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\CB9EB~1.GIN\\AppData\\Local\\Temp\\pip-build-mdyxyolm\\pyodbc\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\CB9EB~1.GIN\AppData\Local\Temp\pip-ag94eyey-record\install-record.txt --single-version-externally-managed --compile: 
    running install 
    running build 
    running build_ext 
    building 'pyodbc' extension 
    creating build 
    creating build\temp.win-amd64-3.5 
    creating build\temp.win-amd64-3.5\Release 
    creating build\temp.win-amd64-3.5\Release\Users 
    creating build\temp.win-amd64-3.5\Release\Users\CB9EB~1.GIN 
    creating build\temp.win-amd64-3.5\Release\Users\CB9EB~1.GIN\AppData 
    creating build\temp.win-amd64-3.5\Release\Users\CB9EB~1.GIN\AppData\Local 
    creating build\temp.win-amd64-3.5\Release\Users\CB9EB~1.GIN\AppData\Local\Temp 
    creating build\temp.win-amd64-3.5\Release\Users\CB9EB~1.GIN\AppData\Local\Temp\pip-build-mdyxyolm 
    creating build\temp.win-amd64-3.5\Release\Users\CB9EB~1.GIN\AppData\Local\Temp\pip-build-mdyxyolm\pyodbc 
    creating build\temp.win-amd64-3.5\Release\Users\CB9EB~1.GIN\AppData\Local\Temp\pip-build-mdyxyolm\pyodbc\src 
    cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYODBC_VERSION=3.0.10 -DPYODBC_UNICODE_WIDTH=2 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include "-Ic:\program files\python35\include" "-Ic:\program files\python35\include" /EHsc /TpC:\Users\CB9EB~1.GIN\AppData\Local\Temp\pip-build-mdyxyolm\pyodbc\src\buffer.cpp /Fobuild\temp.win-amd64-3.5\Release\Users\CB9EB~1.GIN\AppData\Local\Temp\pip-build-mdyxyolm\pyodbc\src\buffer.obj /Wall /wd4668 /wd4820 /wd4711 /wd4100 /wd4127 /wd4191 
    error: command 'cl.exe' failed: No such file or directory 
+2

このパッケージをインストールするには、Visual C++がインストールされている必要があります。代わりに 'easy_install'を使ってみてください。バイナリインストールが必要な場合はバイナリインストールを実行する必要があります。 – user590028

答えて

2

:ここ
は、それがどのように見えるかです。 Windows上で最も一般的なコンパイラは、Visual Studio C++なので、Microsoft Visual C++ Compiler for Python 3.4

  • Visual Studio 2008 for Python 2.7.
  • Visual Studio 2010 for Python 3.4.

から取られたリストを確認の下のVisual Studioの新しいバージョンは、Python 3.5で動作するはずです。

Visual Studioをインストールした場合、pyodbcをエラーなしで構築できるはずです。

関連する問題