开发者社区 问答 正文

Python 安装使用cx_Oracle 的时候报错?报错

win7 64位系统 安装的python2.7版本

import cx_Oracle
user="reader"
pwd="reader"
dsn=cx_Oracle.makedsn("db2.func.weibopay.com","1521","whdb2")
conn=cx_Oracle.connect(user,pwd,dsn)

报错:cx_Oracle.InterfaceError: Unable to acquire Oracle environment handle  网上搜了很多方法  好像都不行 求大神解决啊

展开
收起
爱吃鱼的程序员 2020-06-22 15:03:10 506 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    应该是版本兼容问题,把py27和模块都重新安装成32位的。兼容性好些。

    2020-06-22 15:03:29
    赞同 展开评论