install cx_oracle for python

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

    The following worked for me, both on mac and Linux. This one command should download needed additional files, without need need to set environment variables.

    python -m pip install cx_Oracle --pre
    

    Note, the --pre option is for development and pre-release of the Oracle driver. As of this posting, it was grabbing cx_Oracle-6.0rc1.tar.gz, which was needed. (I'm using python 3.6)

提交回复
热议问题