简体   繁体   English

代码执行无法继续,因为找不到 python37.dll

[英]The code execution cannot proceed because python37.dll was not found

I have a piece of code in C++ into which I am trying to include the Python.h library in order to manage the GIL (to speed things up).我在 C++ 中有一段代码,我试图在其中包含 Python.h 库以管理 GIL(以加快速度)。 Despite adding the proper includes, libraries and path addresses (I am using Visual Studio 2019), I still obtain the following error message:尽管添加了正确的包含、库和路径地址(我使用的是 Visual Studio 2019),我仍然收到以下错误消息:

错误信息

As far as I know, I correctly added the address of the DLL in the $PATH for this project, as shown:据我所知,我在这个项目的$PATH中正确添加了DLL的地址,如图:

项目属性

What am I forgetting here?我在这里忘记了什么?

Are you running this program in release mode?您是否在发布模式下运行该程序? After switching from debug to release, the project properties of debug mode will not be inherited, so it is necessary to reset the project properties.从debug切换到release后,debug模式的项目属性不会被继承,所以需要重新设置项目属性。

You could also try to place the dll file in the.exe directory or write the dll path into the project properties.也可以尝试将dll文件放在.exe目录下或者将dll路径写入工程属性。

At the same time, it is also necessary to check whether the dll file is accidentally deleted by the antivirus software.同时还要检查dll文件是否被杀毒软件误删。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 python37.dll 未在可执行文件中链接 - python37.dll not linked in executable Qt Designer 启动时出错:代码执行无法继续,因为未找到 MSVCP140_1.dll - Qt Designer Error on startup: the code execution cannot proceed because MSVCP140_1.dll was not found python37.dll会突然变成恶意软件吗? - Can python37.dll suddenly become a malware? 使用 cython --embed 时静态链接 python37.dll 和 vcruntime140.dll - Statically link python37.dll and vcruntime140.dll when using cython --embed 为什么在通过 conda 启动 jupyter notebook 时出现 python37.dll 错误 - Why do I get a python37.dll error when starting jupyter notebook via conda 代码执行无法完成,因为找不到 python38.dll - code execution cannot complete as python38.dll not found 错误:从 python3 exe 子进程运行 Maya 时,“模块使用 python37.dll 与此版本的 Python 冲突” - Error: “Module use of python37.dll conflicts with this version of Python” when running Maya from a python3 exe subprocess Cmake 在 Windows 10 上找不到 python37.dll,但文件路径在缓存文件中。 (pybind11) - Cmake can't find python37.dll on Windows 10, but file path is in the Cache file. (pybind11) 应用程序无法启动,因为找不到python33.dll - The application has failed to start because python33.dll was not found 导入错误 pandas python - 找不到 DLL - Error on import pandas python - DLL cannot be found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM