在 Mac OS X 10.8.5 上下载客户端软件,将其添加到我的 bash 配置文件中,现在运行:
easy_install cx_Oracle
Searching for cx-Oracle
Reading http://pypi.python.org/simple/cx_Oracle/
Reading http://cx-oracle.sourceforge.net
Reading http://starship.python.net/crew/atuining
Best match: cx-Oracle 5.1.2
Downloading http://prdownloads.sourceforge.net/cx-oracle/cx_Oracle-5.1.2.tar.gz?download
error: None
然后我去测试我的脚本,它是:
import cx_Oracle
con = cx_Oracle.connect('user/pwd@mydatabase/orcl')
print con.version
con.close()
跑了它并被击中
Traceback (most recent call last):
File "sqlTest.py", line 1, in <module>
import cx_Oracle
有什么想法吗?