我正在尝试下载Pygame,但在最后一步,我总是会收到此错误:

时间:2020-03-21 18:37:53

标签: python installation pygame

我正在学习教程,并且此步骤中的代码失败:

This is the step that the error occurs

有人可以帮助我解决此问题吗?

 Running setup.py install for pygame ... error

ERROR: Command errored out with exit status 1:
     command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/qm/sfjznj095bq302mwh7l2x9pm0000gn/T/pip-req-build-89d5f4tl/setup.py'"'"'; __file__='"'"'/private/var/folders/qm/sfjznj095bq302mwh7l2x9pm0000gn/T/pip-req-build-89d5f4tl/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/qm/sfjznj095bq302mwh7l2x9pm0000gn/T/pip-record-64mzuebk/install-record.txt --single-version-externally-managed --compile
         cwd: /private/var/folders/qm/sfjznj095bq302mwh7l2x9pm0000gn/T/pip-req-build-89d5f4tl/

1 个答案:

答案 0 :(得分:0)

您可以通过以下方式安装: pip安装pygame