install cx_oracle for python

后端 未结 11 1760
逝去的感伤
逝去的感伤 2021-01-30 04:27

Am on Debian 5, I\'ve been trying to install cx_oracle module for python without any success. First, I installed oracle-xe-client and its dependency (followed tutorial in the fo

11条回答
  •  悲哀的现实
    2021-01-30 04:59

    Thanks Burhan Khalid. Your advice to make a a soft link make my installation finally work.

    To recap:

    1. You need both the basic version and the SDK version of instant client

    2. You need to set both LD_LIBRARY_PATH and ORACLE_HOME

    3. You need to create a soft link (ln -s libclntsh.so.12.1 libclntsh.so in my case)

    None of this is documented anywhere, which is quite unbelievable and quite frustrating. I spent over 3 hours yesterday with failed builds because I didn't know to create a soft link.

提交回复
热议问题