Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Python install cx_Oracle

2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

1. Install python

Linux comes with python2.6.6 installed.

two。 Install easy_install

According to the instructions on the official website, unable to install

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

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

Parsing host bootstrap.pypa.io... 103.245.222.175

Connecting bootstrap.pypa.io | 103.245.222.175 |: 443. Connected.

Error: the certificate common name "* .c.ssl.fastly.net" does not match the required hostname "bootstrap.pypa.io".

To connect to the bootstrap.pypa.io in an insecure manner, use'--no-check-certificate'.

Follow the prompts to download ez_setup.py using-- no-check-certificate

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

Then python ez_setup.py installs

3. Install 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

According to the prompts, set up the oracle-related environment

Export ORACLE_HOME=/oracle/oracle/product/11.2.3

Export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report