使用嵌入式c++导入pygame失败
import pygame fails with embedded c++
嗨,伙计们,这是的问题
我在windows 7 32 bin中安装了python 2.7和pygame 1.9当我使用pygame和python interper时,没有问题,它工作得很好
然后对于线路
import pygame
控制台或调用python和文件名没有问题
但我想把它嵌入到用mingw32编译的c++项目中。当我导入其他包,如cv2或numpy没有问题,但在pygame的情况下,我有这个错误
ImportError: DLL load failed: The specified module could not be found.
有人知道问题出在哪里吗?
非常感谢
经过大量的谷歌搜索,我已经解决了。问题出在msi格式的pygame包上。
我卸载了它,我已经安装了轮子和包
pygame‑1.9.2a0‑cp27‑none‑win_amd64.whl
从页面http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame
这对我很有效。在msi包和minggw32编译的情况下,出现了一些dll丢失的问题
非常感谢我们
:)
相关文章:
- 如果没有malloc,链表实现将失败
- 模板参数替换失败,并且未完成隐式转换
- 具有默认模板参数的多态类的模板推导失败
- 视图中的参数推导失败:take_while
- 链接到自行创建的dll失败
- 带有特殊路径部分的"std::filesystem::weakly_canonical"失败
- GetShortPathName在网络驱动器上使用中文文件夹时失败
- gcc和c++17的过载解析失败
- 为什么使用 P/Invoke 调用 dll 时,某些计算机中的 LoadLibrary 失败?
- 在WSL:configure_file上对config_file的每次调用都失败:配置文件时出现问题
- 使用 GCC 卸载的 OpenMP 卸载失败,并出现"Ptx assembly aborted due to errors"
- 使用cmake从源代码构建MySQL连接器/C++失败(与以前的声明冲突)
- 链接阶段在Ubuntu上失败,但在MacOS上失败
- 从父数组测试用例构造二叉树失败
- LibGit2 SSH身份验证失败
- 如何让LLDB在成功时退出,在失败时等待
- VS2017,C++包含目录与附加包含目录,子文件夹包含失败-但为什么
- 生成MRPT库时cmake配置失败
- 为什么除非添加括号,否则构造函数上的模板替换会失败?
- 使用嵌入式c++导入pygame失败