Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/338.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python I';我正在尝试下载Pygame,但在最后一步,我总是遇到以下错误:_Python_Installation_Pygame - Fatal编程技术网

Python I';我正在尝试下载Pygame,但在最后一步,我总是遇到以下错误:

Python I';我正在尝试下载Pygame,但在最后一步,我总是遇到以下错误:,python,installation,pygame,Python,Installation,Pygame,我正在遵循一个教程,但代码在此步骤中失败: 谁能帮我解决这个问题 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; sy

我正在遵循一个教程,但代码在此步骤中失败:

谁能帮我解决这个问题

 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/

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