1

如果我直接运行 start.py,我会得到:

Symbol not found: _OCIAttrGet
Referenced from: /Library/Python/2.7/site-packages/cx_Oracle.so

经过一番谷歌搜索,我发现这是因为 Oracle 客户端架构问题。我现在像这样运行我的脚本并且它可以工作:

arch -i386 python2.7 start.py

现在有了 PyCharm 的免费版本(感谢 JetBrains),我导入了我的项目,但是如何设置“运行配置”以从终端启动我的脚本。

我试过了:

Run -> Edit Configuration -> Python Interpreter but it is already populated with the known python paths

Run -> Edit Configuration -> Interpreter Options but throws an error saying unknown file "arch"

任何解决方法?

4

0 回答 0