温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

python   install cx_Oracle

发布时间:2020-10-11 15:58:40 来源:网络 阅读:1100 作者:cshiqin 栏目:关系型数据库

   1.安装python 

     linux 自带安装了python2.6.6

   2.安装easy_install

  按照官网说明,无法安装

[root@server3 backup]# wget https://bootstrap.pypa.io/ez_setup.py -O - | python

--2014-09-05 16:59:01--  https://bootstrap.pypa.io/ez_setup.py

正在解析主机 bootstrap.pypa.io... 103.245.222.175

正在连接 bootstrap.pypa.io|103.245.222.175|:443... 已连接。

错误: 证书通用名 “*.c.ssl.fastly.net” 与所要求的主机名 “bootstrap.pypa.io” 不符。

要以不安全的方式连接至 bootstrap.pypa.io,使用‘--no-check-certificate’。

依照提示 用 --no-check-certificate 下载ez_setup.py

[root@server3 backup]# wget https://bootstrap.pypa.io/ez_setup.py --no-check-certificate

然后 python ez_setup.py 安装


3. 安装cx_Oracle

[root@server3 backup]# easy_install cx_Oracle

Searching for cx-Oracle

Reading https://pypi.python.org/simple/cx_Oracle/

Reading http://cx-oracle.sourceforge.net

Reading http://starship.python.net/crew/atuining

Best match: cx-Oracle 5.1.3

Downloading https://pypi.python.org/packages/source/c/cx_Oracle/cx_Oracle-5.1.3.tar.gz#md5=cd6ff16559cbc9c20087ec812c7092ab

Processing cx_Oracle-5.1.3.tar.gz

Writing /tmp/easy_install-qNEdPX/cx_Oracle-5.1.3/setup.cfg

Running cx_Oracle-5.1.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-qNEdPX/cx_Oracle-5.1.3/egg-dist-tmp-7rg1rD

error: cannot locate an Oracle software installation


依照提示,设定好 oracle相关环境

export ORACLE_HOME=/oracle/oracle/product/11.2.3

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI