我想连接python和oracle 11g。Python版本- 3.6.1 / 64位,Windows 7-64位。
我已经安装了来自cx_Oracle的Oracle/代码如下-
import cx_Oracle
con = cx_Oracle.connect('sde/sde@orcl')
print (con.version)
con.close()
但我正在接受错误-
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位的步骤。
发布于 2017-05-08 11:53:17
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中运行您的代码文件,它将在几秒钟内加载图形。
https://stackoverflow.com/questions/43801391
复制相似问题