【发布时间】:2018-12-10 02:01:33
【问题描述】:
我是 python 和 oracle 的新手,我已经编写了连接到 oracle 数据库 11g 的代码,但是它给出了一个错误:
import cx_Oracle
con=cx_Oracle.connect('sys/Satyam123@localhost/xe')
con.close(
)
It gives the following error in pycharm:
C:\Users\DELL\venv\module2\Scripts\python.exe C:/Users/DELL/Desktop/PYTHON/module2/check.py Traceback(最近 最后调用):文件“C:/Users/DELL/Desktop/PYTHON/module2/check.py”, 第 2 行,在 con=cx_Oracle.connect('sys/Satyam123@localhost/xe') cx_Oracle.DatabaseError: DPI-1047: 32-bit Oracle Client library cannot 被加载:“找不到指定的模块”。看 https://oracle.github.io/odpi/doc/installation.html#windows求帮助
【问题讨论】:
标签: python oracle pycharm cx-oracle