您的位置:首页 > 数据库 > Oracle

cx_oracle ImportError: DLL load failed: 找不到指定的程序

2015-02-03 14:49 615 查看
网上找了一圈方法,有如下:

1、复制oci.dll到$python_home (比如c:/python26)解决的

2、复制oci.dll到$python_home和C:\Python33\Lib\site-packages 下解决的

3、老外是重装解决的。

I was able to solve this problem with the following steps:

Download instantclient-basic-win32-10.2.0.5 from Oracle
Website

unzipped the into my c:\ with the name oraclient

Created the directory structure C:\oraclient\network\admin to add the TNSNAMES.ORA

Added the TNS_ADMIN env var pointing to C:\oraclient\network\admin

Added the ORACLE_HOME env var pointing to C:\oraclient\
http://stackoverflow.com/questions/13708998/cx-oracle-and-python-2-7
我的解决方法:

最后折腾了一个上午,终于在一个偏僻的论坛看见一个偏方。下载一个


instantclient-basic-win32-10.2.0.4.zip

然后复制到C:\Python33\Lib\site-packages搞定。

本来是32位系统,为了照顾plsql用的32位的cline,python和cx_Oracle也下载的32位的。

顺便附上下载链接:

下载安装cx_Oracle包
http://cx-oracle.sourceforge.net/
python
https://www.python.org/downloads/
oracle
http://www.oracle.com/technetwork/topics/winsoft-085727.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐