Python 进程完成,退出代码 -1073741515 (0xC0000135)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/33582766/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 13:36:03  来源:igfitidea点击:

Process finished with exit code -1073741515 (0xC0000135)

pythonpygamepycharmerror-code

提问by Cribber

im running a python script and it used to work, even does on my laptop right now but not on my other computer - i just get the error code:

我正在运行一个 python 脚本,它曾经可以工作,现在甚至可以在我的笔记本电脑上运行,但不能在我的另一台计算机上运行 - 我只是收到错误代码:

Process finished with exit code -1073741515 (0xC0000135)

I dont get any other results - not even from "print" commands at the beginning of the file.

我没有得到任何其他结果 - 甚至没有从文件开头的“打印”命令中得到。

I havent found anything specific to that.. I re-installed python (2.7.9), pygame (1.9.1) and even pycharm (tried 4.5 first, now with 5.0 - same result)

我还没有找到任何特定的东西..我重新安装了 python (2.7.9)、pygame (1.9.1) 甚至 pycharm(首先尝试了 4.5,现在使用 5.0 - 结果相同)

Does anyone know what that error code means? I couldnt find anything about it.

有谁知道那个错误代码是什么意思?我找不到任何关于它的信息。

采纳答案by Dunot

reinstall python – you don't have python33.dll in c:\WINDOWS\system32\

重新安装 python——你在 c:\WINDOWS\system32\ 中没有 python33.dll

Maybe you have different python versions – look at folders in root of c:

也许你有不同的python版本——查看c根目录下的文件夹:

If yes, then point to your version of python.exe in pyCharm > Settings > Project Interpreter

如果是,则在 pyCharm > Settings > Project Interpreter 中指向您的 python.exe 版本

回答by Big Pumpkin

I encountered the same error when running .py in PyCharm on Windows. Inspired by https://thenewboston.com/forum/topic.php?id=10088, I uninstalled and reinstalled Python. When reinstalling, I checked the ADD PYTHON TO THE PATHOption. After recreating the virtual environment in PyCharm, the error was gone.

我在 Windows 上的 PyCharm 中运行 .py 时遇到了同样的错误。受https://thenewboston.com/forum/topic.php?id=10088 的启发,我卸载并重新安装了 Python。重新安装时,我检查了ADD PYTHON TO THE PATH选项。在 PyCharm 中重新创建虚拟环境后,错误消失了。

Update: On another Windows PC (64-bit), I encountered the same error where reinstalling Python was not enough. I tried two things.

更新:在另一台 Windows PC(64 位)上,我遇到了同样的错误,重新安装 Python 是不够的。我尝试了两件事。

  1. Uninstalling 32-bit Python and installing 64-bit Python. Namely downloading python-3.6.4-amd64.exeinstead of python-3.6.4.exe
  2. Recreating the Pycharm project from github.
  1. 卸载 32 位 Python 并安装 64 位 Python。即下载python-3.6.4-amd64.exe而不是python-3.6.4.exe
  2. 从 github 重新创建 Pycharm 项目。

Between the two actions, the error was gone.

在两次操作之间,错误消失了。

回答by Ri Evan

If you're trying create a .svm use dlib probably the problem is in .xml, some image that you use is cause the problem. Try to create a new .xml putting out a image(any image) or remove that your .xml and test, try this even you find out the image problem.

如果您尝试创建 .svm 使用 dlib,问题可能出在 .xml 中,您使用的某些图像会导致问题。尝试创建一个新的 .xml 并放出图像(任何图像)或删除您的 .xml 并进行测试,即使您发现图像问题,也可以尝试此操作。

For exemple, the image "treinamento3.jpg" was the problem. I removed this command line:

例如,图像“treinamento3.jpg”就是问题所在。我删除了这个命令行:

< image file='delirium\treinamento3.jpg'>
    < box top='213' left='86' width='46' height='49'/ >
    < box top='531' left='47' width='125' height='123'/ >
  < /image >

from my .xml for solve my problem.

从我的 .xml 解决我的问题。

回答by BarLr

This may be due to another program locking that memory location. Before you try more drastic measures, know that restarting the computer fixed the problem for me.

这可能是由于另一个程序锁定了该内存位置。在您尝试更严厉的措施之前,请知道重新启动计算机为我解决了问题。

回答by wingwe

I got this error in PyCharm after upgrading pyarrow to the most recent version -- 0.16 --- using pip, running the same code I had ran before this update which used pandas read_parquet specifying the engine="pyarrow" triggering use of this library. After uninstalling and installing the previous version with

使用 pip 将 pyarrow 升级到最新版本 -- 0.16 --- 后,我在 PyCharm 中遇到此错误,运行与此更新之前运行的相同代码,该代码使用 pandas read_parquet 指定 engine="pyarrow" 触发使用该库。卸载并安装以前的版本后

pip install pyarrow=="0.15"

pip 安装 pyarrow=="0.15"

the problem resolved.

问题解决了。

回答by FLBKernel

I solved it by disabling "PyQt compatible" checkbox in the Settings under Build, Execution, Deployment --> Python Debugger.

我通过禁用Build, Execution, Deployment --> Python Debugger下设置中的“ PyQt compatible”复选框解决了这个问题。

After that, it should debug properly.

之后,它应该正确调试。