gpt4 book ai didi

python - Windows 中的 Pygame : ImportError: DLL load failed

转载 作者:太空狗 更新时间:2023-10-29 20:55:05 24 4
gpt4 key购买 nike

我刚刚安装了 PyGame 1.9.1(安装到现有的 python 2.6.4 上)。 Python 及其标准库可以正常工作,但是,python 甚至无法(正确)找到 pygame 模块也存在问题。

Traceback (most recent call last):
File "C:\foo\bar\firstGame.py", line 2, in <module>
import pygame
File "C:\python264\lib\site-packages\pygame\__init__.py", line 95, in <module>
from pygame.base import *
ImportError: DLL load failed: The specified module could not be found.

为什么会这样?谷歌搜索产生了以下响应,但我已尝试无济于事:

有人解决了 win + pygame 中的问题吗?

谢谢


编辑:按要求添加了更多信息:
- Windows 版本:Windows Vista(定期更新)
- 使用的安装程序:Windows MSI 安装程序
- 为所有用户安装
- C:\python264\lib\site-packages\pygame 中的文件数:

  • 动态链接库:14
  • PYD:34
  • 年:19
  • PYC:1

最佳答案

你确定你有 Python 2.6 的 pygame 吗? 2.5 的版本将无法工作并产生此错误消息,因为 pyd 文件找不到 python 2.5 dll。

关于python - Windows 中的 Pygame : ImportError: DLL load failed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1969426/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com