程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Install the package of Python connecting to Oracle database on Ubuntu

編輯:Python

Reference manual download link :

https://cx-oracle.readthedocs.io/en/latest/user_guide/installation.html#install-cx-oracle

One 、 install alien、cx_Oracle

apt-get install alien
pip install cx_Oracle

Two 、 download oracle client RPMS file

There are three versions of the file :

  • x86-64 64-bit
  • x86 32bit
  • ARM (aarch64) 64bit

Select the file corresponding to the operating system version by yourself :

This article chooses x64rpm File download :

https://www.oracle.com/database/technologies/instant-client/linux-x86-64-downloads.html

  3、 ... and 、 install

# install rpm
alien -i oracle-instantclient-basic-21.6.0.0.0-1.el8.x86_64.rpm
# install libaio1
apt-get install libaio1

Solve the problem successfully !


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved