easy_install cx_Oracle (python package) on Windows

后端 未结 4 1396
天命终不由人
天命终不由人 2020-12-06 05:54

So I found Help installing cx_Oracle but am still stuck. I downloaded the latest instantclient from oracle, and set ORACLE_HOME to the location of the extracted files (both

4条回答
  •  渐次进展
    2020-12-06 06:23

    1. Download oracle instant client (for 32bit or 64bit archtitect and appropriate version of Oracle (10g,11g,12g)). http://www.oracle.com/technetwork/topics/winx64soft-089540.html

    Note: Requires an user to authenticate with an OTN (oracle tech network account).

    1.1. Download and unzip "Instant Client Package - Basic" to C:\Python27\Scripts\instantclient_11_2 e.g. instantclient-basic-windows.x64-11.2.0.4.0.zip

    1.2. Download and unzip "Instant Client Package - SDK" to C:\Python27\Scripts\instantclient_11_2 e.g. instantclient-sdk-windows.x64-11.2.0.4.0.zip

    1. set ORACLE_HOME=C:\Python27\Scripts\instantclient_11_2

    2. python -m pip install cx_Oracle

    Output on success: Collecting cx_Oracle Using cached cx_Oracle-5.2.1.tar.gz Building wheels for collected packages: cx-Oracle Running setup.py bdist_wheel for cx-Oracle ... done Stored in directory: C:\Users\m315468\AppData\Local\pip\Cache\wheels\7c\5f\96\ cd273c9b675bc7c28ae249b74d1f7df5d3eacba9e918715225 Successfully built cx-Oracle Installing collected packages: cx-Oracle Successfully installed cx-Oracle-5.2.1

提交回复
热议问题