1.安裝python

創(chuàng)新互聯公司提供網站設計制作、成都網站制作、網頁設計,品牌網站制作,1元廣告等致力于企業(yè)網站建設與公司網站制作,10多年的網站開發(fā)和建站經驗,助力企業(yè)信息化建設,成功案例突破1000多家,是您實現網站建設的好選擇.
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相關環(huán)境
export ORACLE_HOME=/oracle/oracle/product/11.2.3
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
新聞名稱:python installcx_Oracle
當前鏈接:http://www.chinadenli.net/article12/igpedc.html
成都網站建設公司_創(chuàng)新互聯,為您提供用戶體驗、手機網站建設、網站策劃、網站設計公司、商城網站、網站制作
聲明:本網站發(fā)布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創(chuàng)新互聯