pythonインストールcx_Oracleエラー:failed with exit status 1120

1089 ワード

次のエラーが発生した場合、x 86のoracleクライアントによる可能性があります.
error: command 'C:\\Users\\Administrator\\AppData\\Local\\Programs\\Common\\
Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\link.exe' failed with exi
t status 1120

Command "d:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\
\users\\admini~1\\appdata\\local\\temp\\pip-build-hgbxxk\\cx-Oracle\\setup.py';f
=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r
', '
');f .close();exec(compile(code, __file__, 'exec'))" install --record c:\users\admini ~1\appdata\local\temp\pip-zfk0bj-record\install-record.txt --single-version-exte rnally-managed --compile" failed with error code 1 in c:\users\admini~1\appdata\ local\temp\pip-build-hgbxxk\cx-Oracle\

cx_を使用するにはOracle:原文リンク
  • you must install oracle client first
  • make sure :win7 x64; python x64; oracle client x64
  • pip install cx_Oracle

  • ローカルにインストールされているoracleがx 86であることを考慮して、pythonを32ビットバージョンに置き換えると、この問題を解決できます.