我想在pycharmide中以详细模式运行python程序。我在“运行/调试配置”窗口下的解释器选项中指定了“-v”。但它显示了以下错误:
/usr/bin/python2.7 /home/user1/Downloads/pycharm-community-2016.1.4/helpers/pydev/pydev_run_in_console.py 35261 34268 -v /home/user1/my_codings/gitStuffs/Cura_Debian_Release/usr/share/cura/cura.py Traceback (most recent call last): File "/home/user1/Downloads/pycharm-community-2016.1.4/helpers/pydev/pydev_run_in_console.py", line 71, in globals = run_file(file, None, None) File "/home/user1/Downloads/pycharm-community-2016.1.4/helpers/pydev/pydev_run_in_console.py", line 31, in run_file pydev_imports.execfile(file, globals, locals) # execute the script IOError: [Errno 2] No such file or directory: '-v' Running -v
如果您这样运行它应该可以工作:
如果您需要调试器(或添加其他文件),则
^{pr2}$-v
应该首先:在PyCharm中,应该在
Interpreter options
内添加-v /home/user1/Downloads/pycharm-community-2016.1.4/helpers/pydev/pydev_run_in_console.py 35261 34268
。在相关问题 更多 >
编程相关推荐