在 PyCharm 中以退出代码 137 结束进程 [英] Process finished with exit code 137 in PyCharm

查看:80
本文介绍了在 PyCharm 中以退出代码 137 结束进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在 PyCharm 中手动停止脚本时,进程以退出代码 137 结束.但我没有停止脚本.退出码 137 还是有,有什么问题?

When I stop the script manually in PyCharm, process finished with exit code 137. But I didn't stop the script. Still got the exit code 137. What's the problem?

Python 版本为 3.6,运行 xgboost.train() 方法时处理完成.

Python version is 3.6, process finished when running xgboost.train() method.

推荐答案

退出代码 137 表示您的进程被(信号 9)SIGKILL 杀死.如果您手动停止它 - 这就是您的答案.

Exit code 137 means that your process was killed by (signal 9) SIGKILL . In the case you manually stopped it - there's your answer.

如果您没有手动停止脚本并且仍然收到此错误代码,则该脚本已被您的操作系统杀死.在大多数情况下,它是由过多的内存使用引起的.

If you didn't manually stop the script and still got this error code, then the script was killed by your OS. In most of the cases, it is caused by excessive memory usage.

这篇关于在 PyCharm 中以退出代码 137 结束进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆