Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/157.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 用嵌入式C++实现PyPoice失败_Python_C++_Dll_Pygame_Mingw32 - Fatal编程技术网

Python 用嵌入式C++实现PyPoice失败

Python 用嵌入式C++实现PyPoice失败,python,c++,dll,pygame,mingw32,Python,C++,Dll,Pygame,Mingw32,嗨,伙计们,这就是问题所在 我已经在Windows732中安装了Python2.7和PyGame1.9 当我将pygame与python interpeter一起使用时,它工作得很好 然后排队 import pygame 控制台或调用python和文件名没有问题 但是我想把它嵌入到一个用明文32编译的C++项目中。当我导入其他软件包,如cv2或numpy时,没有问题,但在pygame的情况下,我有这个错误 ImportError: DLL load failed: The specified

嗨,伙计们,这就是问题所在

我已经在Windows732中安装了Python2.7和PyGame1.9 当我将pygame与python interpeter一起使用时,它工作得很好

然后排队

import pygame
控制台或调用python和文件名没有问题

<>但是我想把它嵌入到一个用明文32编译的C++项目中。当我导入其他软件包,如cv2或numpy时,没有问题,但在pygame的情况下,我有这个错误

ImportError: DLL load failed: The specified module could not be found.
有人知道问题出在哪里吗


非常感谢

经过大量的谷歌搜索,我已经解决了这个问题。问题在于msi格式的pygame软件包

我卸载了它,并安装了wheel和软件包

pygame‑1.9.2a0‑cp27‑none‑win_amd64.whl
从页面

这对我很有用。在msi软件包和minggw32编译的情况下,有一个dll丢失的问题

非常感谢我们所有人


经过大量的搜索,我已经解决了问题。很抱歉,我复制了错误的软件包名称,它是PyGame-1.9.2a0-cp27-none-win32.whl