【发布时间】:2016-03-15 05:47:17
【问题描述】:
我使用的是 Python 3.5,以及为它设计的 pygame 版本。我现在已经安装了 pygame,通过转换为 zip 并移动此视频 here 中的文件。但是,当我运行命令import pygame 时,会出现错误ImportError: No module named 'pygame.base'。
过去使用这种安装方法效果很好,但自从换了新电脑后,就无法正常工作了。出了什么问题,我该如何解决?
编辑:
我尝试使用在 Game Dev SE 上找到的答案,但这给了我错误:not a supported wheel on this platform
我要安装的 pygame 版本是:pygame-1.9.2a0-cp35-none-win_amd64.whl。可以找到here。
【问题讨论】:
-
python 3.5没有pygame的版本
-
这似乎在GameDev SE得到了回答。
-
@Fredrik 这里有lfd.uci.edu/~gohlke/pythonlibs/#pygame
-
@NanderSpeerstra 我试过了,我得到了错误,
not a supported wheel on this platform -
@GeorgeWillcox 这不是官方版本。官方版本可以在 pygame bitbucket 网站bitbucket.org/pygame/pygame/downloads 上找到,因为今天它们支持 python 3.4
标签: python python-3.x pygame installation