【发布时间】:2014-04-14 10:13:38
【问题描述】:
我正在尝试将 pygame 安装在我精心设计的 canopy python 发行版中。我正在使用适用于 64 位 Mac(Python 2.7.6)的最新版本的 Canopy,并且正在使用 Mavericks OS。我知道安装 pygame 应该是可能的,因为我设法使用二进制安装文件 available here 从 python 网站让 pygame 与官方 python 2.7.6 一起工作。
我尝试的第一件事是确保 canopy 是我的默认 python,以及上面链接的安装文件,但这只是将 pygame 重新安装到官方 python 发行版中。
接下来我尝试了 pip,我用它成功安装了其他软件包(例如,spyder)。以下是我尝试pip install pygame时发生的情况:
下载/解压pygame
下载pygame-1.9.2pre-py2.7-macosx10.7.mpkg.zip (7.4Mb): 7.4Mb
已下载
为 pygame 包运行 setup.py egg_info
Traceback (most recent call last): File "<string>", line 14, in <module> IOError: [Errno 2] No such file or directory: '/Users/Sam/build/pygame/setup.py' Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 14, in <module>IOError: [Errno 2] 没有这样的文件或目录: '/Users/Sam/build/pygame/setup.py'
这与错误reported here 不同,所以我完全不确定发生了什么。有什么建议吗?
【问题讨论】:
标签: python macos python-2.7 pygame enthought