[英]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.