我正在学习教程,并且此步骤中的代码失败:
有人可以帮助我解决此问题吗?
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/
答案 0 :(得分:0)
您可以通过以下方式安装: pip安装pygame