install cx_oracle for python

后端 未结 11 1849
逝去的感伤
逝去的感伤 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 05:04

    I recommend that you grab the rpm files and install them with alien. That way, you can later on run apt-get purge no-longer-needed.

    In my case, the only env variable I needed is LD_LIBRARY_PATH, so I did:

    echo export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client/lib >> ~/.bashrc
    source ~/.bashrc
    

    I suppose in your case that path variable will be /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/lib.

提交回复
热议问题