无法打开 Python.错误 0xc000007b [英] Cannot Open Python. Error 0xc000007b

查看:134
本文介绍了无法打开 Python.错误 0xc000007b的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近一直在学习 Python 3.我在上网本(32 位 Windows 7)上创建小型简单程序时没有遇到任何问题.当我将它安装到我的上网本上时,我没有遇到任何问题,但是现在我已经开始使用它了,我想将它安装在我的桌面上并且我有一个.我的桌面是运行 Windows 7 的 64 位操作系统.就像我使用上网本一样,我去下载 Python 并安装了 64 位版本.

I have recently been learning Python 3. I have had no problems on my netbook (32bit Windows 7) I with creating small simple programs. When I installed it on my netbook I had no problems, but now that I've been getting into it I want to install it on my desktop and I have one. My desktop is a 64 bit OS running Windows 7. Like I did with my netbook, I went to download Python and install the 64 bit edition.

安装后,我去打开 Python CLI 和 GUI,但没有运气.它给了我这个错误.

After installing it, I went to open up Python CLI and GUI and no luck. It gave me this error.

"The application was unable to start correctly (0xc000007b). Click OK to close the application"

我也尝试过重新安装,但运气不佳.

I also tried reinstalling, but not luck.

我怀疑缺少 .dll,但我不完全确定.有谁知道是什么让我无法打开 Python 以及如何修复它?我想尽快恢复工作.

I suspect a missing .dll but I am not completely sure. Does anyone know what is keeping me from opening Python and how do I fix it?. I want to resume my work as soon as possible.

推荐答案

STATUS_INVALID_IMAGE_FORMATNTSTATUS 错误代码.这几乎总是意味着加载程序试图将 32 位 DLL 链接到 64 位进程,反之亦然.

That is the NTSTATUS error code for STATUS_INVALID_IMAGE_FORMAT. Almost invariably that means that the loaded is attempting to link a 32 bit DLL into a 64 bit process, or vice versa.

如果您想尝试调试它,那么选择的工具是 Dependency Walker.您在 Dependency Walker 中打开 python.exe 可执行文件,并使用配置文件菜单启动它并记录加载事件.在此过程中的某个地方会出现故障,您将能够看到哪个模块导致了该故障.这有望为解决问题指明方向.

If you want to attempt to debug this then the tool of choice is Dependency Walker. You open the python.exe executable file in Dependency Walker and use the profile menu to start it up with logging of the load events. Somewhere along the way there will be a failure and you'll be able to see which module is causing that failure. That will hopefully point the way towards a resolution.

然而,尝试调试这可能是浪费时间.卸载现有安装并尝试重新安装可能会更好.也许选择不同的 Python 发行版.

However, attempting to debug this may be a waste of time. It will probably better to uninstall the existing installation, and try to re-install. Perhaps picking a different Python distribution.

我注意到您选择了 64 位版本.现在,对 64 位扩展模块的支持在 64 位 Python 上不如在 32 位 Python 上那么强.它确实存在,但它们的模块可能更难获得和安装.下次您可能会考虑安装 32 位 Python.

I note that you have selected a 64 bit version. Now, support for 64 bit extension modules is not as strong on 64 bit Python as on 32 bit Python. It does exist, but they modules can be harder to come by and install. You might consider installing a 32 bit Python next time round.

这篇关于无法打开 Python.错误 0xc000007b的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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