简体   繁体   中英

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.

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.

The trick was to add the MinGW64 lib path to the 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 ).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM