Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在PyCharm中更改python启动命令_Python_Macos_Pycharm - Fatal编程技术网

如何在PyCharm中更改python启动命令

如何在PyCharm中更改python启动命令,python,macos,pycharm,Python,Macos,Pycharm,如果我直接运行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),我导入了我的项目,但如何设置“运行配置”以从终

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