首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Python - Oracle 11g连接

Python - Oracle 11g连接
EN

Stack Overflow用户
提问于 2017-05-05 09:31:02
回答 1查看 517关注 0票数 0

我想连接python和oracle 11g。Python版本- 3.6.1 / 64位,Windows 7-64位。

我已经安装了来自cx_Oracle的Oracle/代码如下-

代码语言:javascript
运行
复制
import cx_Oracle

con = cx_Oracle.connect('sde/sde@orcl')
print (con.version)
con.close()

但我正在接受错误-

代码语言:javascript
运行
复制
C:\Python\Python36\python.exe 
D:/Automation/Python_WP/practice/database/db_connection.py
Traceback (most recent call last):
File "D:/Automation/Python_WP/practice/database/db_connection.py", line 1, in <module>
import cx_Oracle
ImportError: DLL load failed: The specified module could not be found.

Process finished with exit code 1

请告诉我连接Python3.6.1和Oracle11g用于Windows764位的步骤。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-05-08 11:53:17

代码语言:javascript
运行
复制
1. Download msvcp71.dll and msvcr71.dll from the web.
2. Save them to your C:\Windows\System32 folder.
3. Save them to your C:\Windows\SysWOW64 folder as well (if you have a 64-bit operating system).

现在,尝试在Python中运行您的代码文件,它将在几秒钟内加载图形。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43801391

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档