【发布时间】:2025-12-03 05:35:01
【问题描述】:
大家好,这是问题
我已经在 windows 7 32 bin 中安装了 python 2.7 和 pygame 1.9 当我将 pygame 与 python interpeter 一起使用时,它可以正常工作
然后换行
import pygame
控制台或调用python和文件名没有问题
但我想将它嵌入到使用 mingw32 编译的 c++ 项目中。当我导入 cv2 或 numpy 等其他包时没问题,但在 pygame 的情况下我有这个错误
ImportError: DLL load failed: The specified module could not be found.
有人知道问题出在哪里吗?
非常感谢
【问题讨论】:
-
经过大量的谷歌搜索我已经解决了
标签: python c++ dll pygame mingw32