Pygame无法在Mac上下载

时间:2019-12-15 20:29:57

标签: python pip pygame

当我使用 pip3 install pygame 在我内置的Mac终端上,我希望它不返回任何内容,或者可能会确认下载的内容,但是我得到了

ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/80/ct2vlpb17tq6fv7tk7fzrq300000gn/T/pip-install-0lflyyj6/pygame/setup.py'"'"'; __file__='"'"'/private/var/folders/80/ct2vlpb17tq6fv7tk7fzrq300000gn/T/pip-install-0lflyyj6/pygame/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/80/ct2vlpb17tq6fv7tk7fzrq300000gn/T/pip-record-riycfu31/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

那仅仅是错误消息本身,实际输出大约是400行,如果需要的话,我可以发布它。

1 个答案:

答案 0 :(得分:0)

pygame 1.9.6不为MacOS X的Python 3.8提供二进制轮子。他们为w32 / w64提供了轮子,为MacOS X for Python 3.4-3.7提供了轮子。

我的建议是使用Python 3.7。 Python 3.8可以,但第三方模块尚不可用。