如果我直接运行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"
有任何解决方法吗?