简体   繁体   English

python Windows“ ImportError:DLL加载失败:找不到指定的模块。”加载编译的扩展名时

[英]python Windows “ImportError: DLL load failed: The specified module could not be found.” When loading compiled extension

I compiled a module for python using MinGW64 and it won't load. 我使用MinGW64为python编译了一个模块,它将不会加载。

I tried checking the file types of the files (with the mingw file command) and they are both 64 bit, so that's not the problem. 我尝试检查文件的文件类型(使用mingw file命令),它们都是64位的,所以这不是问题。

The trick was to add the MinGW64 lib path to the PATH. 诀窍是将MinGW64 lib路径添加到PATH。

> set PATH=%PATH%;%MINGW64_ROOT%\x86_64-4.9.0-posix-seh-rt_v3-rev2\mingw64\bin

(Also, to get this to build, I had to define the macro: MS_WIN64 ). (此外,要构建此文件,我必须定义宏: MS_WIN64 )。

暂无
暂无

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

相关问题 导入错误:DLL 加载失败:找不到指定的模块。(Keras) - ImportError: DLL load failed: The specified module could not be found.(Keras) MeCab:“ImportError:DLL 加载失败:找不到指定的模块。” - MeCab: “ImportError: DLL load failed: The specified module could not be found.” MeCab:“ ImportError:DLL加载失败:找不到指定的模块。” - MeCab: “ImportError: DLL load failed: The specified module could not be found.” ImportError:DLL加载失败:找不到指定的过程。蟒蛇 - ImportError: DLL load failed: The specified procedure could not be found. Python Boost.Python示例,Windows 7 x64,“ ImportError:DLL加载失败:找不到指定的模块。” - Boost.Python examples, Windows 7 x64, “ImportError: DLL load failed: The specified module could not be found.” Boost.Python + opencv Error, Windows 10 x64, "ImportError: DLL load failed: The specified module could not be found." - Boost.Python + opencv Error, Windows 10 x64, "ImportError: DLL load failed: The specified module could not be found." 导入错误:DLL 加载失败:找不到指定的模块。 Python 3.6 导入 dotnet - ImportError: DLL load failed: The specified module could not be found. Python 3.6 import dotnet 导入错误:DLL 加载失败:找不到指定的模块。 (NASA Fortran CEA 的 Python Rocketcea 包装器) - ImportError: DLL load failed: The specified module could not be found. (Python rocketcea wrapper for NASA Fortran CEA) ImportError:DLL加载失败:找不到指定的模块。 尝试“从PIL导入图像”时 - ImportError: DLL load failed: The specified module could not be found. when trying to “from PIL import Image” ImportError:DLL加载失败:找不到指定的模块。 在pycharm中导入cv2时 - ImportError: DLL load failed: The specified module could not be found. when importing cv2 in pycharm
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM