install cx_oracle for python

后端 未结 11 1847
逝去的感伤
逝去的感伤 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:47

    Thx Burhan Khalid, I overlooked your "You need to be root" quote, but found the way when you are not the root here.

    At point 7 you need to use:

    sudo env ORACLE_HOME=$ORACLE_HOME python setup.py install 
    

    Or

    sudo env ORACLE_HOME=/path/to/instantclient python setup.py install
    

提交回复
热议问题