尝试点子安装pygame“错误:命令'clang'失败,退出状态为1”

如何解决尝试点子安装pygame“错误:命令'clang'失败,退出状态为1”

我是菜鸟。不知道我在brew / pip / python的安装过程中做了什么,但是当我尝试并pip install pygame时仍然出现此错误:

ERROR: Command errored out with exit status 1:
     command: /Users/<user>/tmp/.venv/bin/python3 -u -c 'import sys,setuptools,tokenize; sys.argv[0] = '"'"'/private/var/folders/g1/3v27bfbx7092tndxwyq0vdv80000gn/T/pip-install-aylw0nbn/pygame/setup.py'"'"'; __file__='"'"'/private/var/folders/g1/3v27bfbx7092tndxwyq0vdv80000gn/T/pip-install-aylw0nbn/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/g1/3v27bfbx7092tndxwyq0vdv80000gn/T/pip-record-2mhljjki/install-record.txt --single-version-externally-managed --compile --install-headers /Users/<user>/tmp/.venv/include/site/python3.8/pygame
         cwd: /private/var/folders/g1/3v27bfbx7092tndxwyq0vdv80000gn/T/pip-install-aylw0nbn/pygame/
    Complete output (219 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.15-x86_64-3.8
    creating build/lib.macosx-10.15-x86_64-3.8/pygame
    copying src_py/surfarray.py -> build/lib.macosx-10.15-x86_64-3.8/pygame
    copying src_py/sysfont.py -> build/lib.macosx-10.15-x86_64-3.8/pygame
    copying src_py/_camera_vidcapture.py -> build/lib.macosx-10.15-x86_64-3.8/pygame
    copying src_py/sndarray.py -> build/lib.macosx-10.15-x86_64-3.8/pygame
    copying src_py/version.py -> build/lib.macosx-10.15-x86_64-3.8/pygame
    copying src_py/compat.py -> build/lib.macosx-10.15-x86_64-3.8/pygame
    copying src_py/draw_py.py -> build/lib.macosx-10.15-x86_64-3.8/pygame
    copying src_py/colordict.py -> build/lib.macosx-10.15-x86_64-3.8/pygame
    copying src_py/ftfont.py -> build/lib.macosx-10.15-x86_64-3.8/pygame
    copying src_py/midi.py -> build/lib.macosx-10.15-x86_64-3.8/pygame
    copying src_py/cursors.py -> build/lib.macosx-10.15-x86_64-3.8/pygame
    copying src_py/__init__.py -> build/lib.macosx-10.15-x86_64-3.8/pygame
    copying src_py/font.py -> build/lib.macosx-10.15-x86_64-3.8/pygame
    copying src_py/_numpysndarray.py -> build/lib.macosx-10.15-x86_64-3.8/pygame
    copying src_py/sprite.py -> build/lib.macosx-10.15-x86_64-3.8/pygame
    copying src_py/macosx.py -> build/lib.macosx-10.15-x86_64-3.8/pygame
    copying src_py/_numpysurfarray.py -> build/lib.macosx-10.15-x86_64-3.8/pygame
    copying src_py/camera.py -> build/lib.macosx-10.15-x86_64-3.8/pygame
    copying src_py/freetype.py -> build/lib.macosx-10.15-x86_64-3.8/pygame
    copying src_py/_camera_opencv_highgui.py -> build/lib.macosx-10.15-x86_64-3.8/pygame
    copying src_py/pkgdata.py -> build/lib.macosx-10.15-x86_64-3.8/pygame
    copying src_py/locals.py -> build/lib.macosx-10.15-x86_64-3.8/pygame
    copying src_py/_dummybackend.py -> build/lib.macosx-10.15-x86_64-3.8/pygame
    creating build/lib.macosx-10.15-x86_64-3.8/pygame/threads
    copying src_py/threads/Py25Queue.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/threads
    copying src_py/threads/__init__.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/threads
    creating build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/base_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/font_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/mixer_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/rwobject_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/pixelcopy_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/overlay_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/scrap_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/touch_tags.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/imageext_tags.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/pixelarray_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/draw_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/transform_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/blit_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/bufferproxy_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/surfarray_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/mouse_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/surfarray_tags.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/event_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/imageext_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/sprite_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/touch_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/gfxdraw_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/rect_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/scrap_tags.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/__init__.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/overlay_tags.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/color_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/camera_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/surflock_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/key_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/sysfont_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/font_tags.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/mixer_tags.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/constants_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/mixer_music_tags.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/sndarray_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/image_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/version_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/freetype_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/joystick_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/midi_tags.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/ftfont_tags.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/image__save_gl_surface_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/cdrom_tags.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/cursors_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/fastevent_tags.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/display_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/fastevent_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/compat_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/ftfont_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/cdrom_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/mask_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/midi_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/freetype_tags.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/math_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/time_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/image_tags.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/threads_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/__main__.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/mixer_music_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/sndarray_tags.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/test_test_.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    copying test/surface_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests
    creating build/lib.macosx-10.15-x86_64-3.8/pygame/tests/test_utils
    copying test/test_utils/run_tests.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/test_utils
    copying test/test_utils/endian.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/test_utils
    copying test/test_utils/test_machinery.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/test_utils
    copying test/test_utils/__init__.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/test_utils
    copying test/test_utils/png.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/test_utils
    copying test/test_utils/test_runner.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/test_utils
    copying test/test_utils/arrinter.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/test_utils
    copying test/test_utils/buftools.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/test_utils
    copying test/test_utils/async_sub.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/test_utils
    creating build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests
    copying test/run_tests__tests/run_tests__test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests
    copying test/run_tests__tests/__init__.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests
    creating build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/all_ok
    copying test/run_tests__tests/all_ok/fake_3_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/all_ok
    copying test/run_tests__tests/all_ok/fake_2_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/all_ok
    copying test/run_tests__tests/all_ok/__init__.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/all_ok
    copying test/run_tests__tests/all_ok/fake_4_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/all_ok
    copying test/run_tests__tests/all_ok/fake_5_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/all_ok
    copying test/run_tests__tests/all_ok/no_assertions__ret_code_of_1__test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/all_ok
    copying test/run_tests__tests/all_ok/zero_tests_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/all_ok
    copying test/run_tests__tests/all_ok/fake_6_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/all_ok
    creating build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/failures1
    copying test/run_tests__tests/failures1/fake_3_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/failures1
    copying test/run_tests__tests/failures1/fake_2_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/failures1
    copying test/run_tests__tests/failures1/__init__.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/failures1
    copying test/run_tests__tests/failures1/fake_4_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/failures1
    creating build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/incomplete
    copying test/run_tests__tests/incomplete/fake_3_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/incomplete
    copying test/run_tests__tests/incomplete/fake_2_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/incomplete
    copying test/run_tests__tests/incomplete/__init__.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/incomplete
    creating build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/infinite_loop
    copying test/run_tests__tests/infinite_loop/fake_2_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/infinite_loop
    copying test/run_tests__tests/infinite_loop/fake_1_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/infinite_loop
    copying test/run_tests__tests/infinite_loop/__init__.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/infinite_loop
    creating build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/print_stderr
    copying test/run_tests__tests/print_stderr/fake_3_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/print_stderr
    copying test/run_tests__tests/print_stderr/fake_2_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/print_stderr
    copying test/run_tests__tests/print_stderr/__init__.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/print_stderr
    copying test/run_tests__tests/print_stderr/fake_4_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/print_stderr
    creating build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/print_stdout
    copying test/run_tests__tests/print_stdout/fake_3_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/print_stdout
    copying test/run_tests__tests/print_stdout/fake_2_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/print_stdout
    copying test/run_tests__tests/print_stdout/__init__.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/print_stdout
    copying test/run_tests__tests/print_stdout/fake_4_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/print_stdout
    creating build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/incomplete_todo
    copying test/run_tests__tests/incomplete_todo/fake_3_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/incomplete_todo
    copying test/run_tests__tests/incomplete_todo/fake_2_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/incomplete_todo
    copying test/run_tests__tests/incomplete_todo/__init__.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/incomplete_todo
    creating build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/exclude
    copying test/run_tests__tests/exclude/magic_tag_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/exclude
    copying test/run_tests__tests/exclude/fake_2_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/exclude
    copying test/run_tests__tests/exclude/__init__.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/exclude
    copying test/run_tests__tests/exclude/invisible_tag_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/exclude
    creating build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/timeout
    copying test/run_tests__tests/timeout/sleep_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/timeout
    copying test/run_tests__tests/timeout/fake_2_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/timeout
    copying test/run_tests__tests/timeout/__init__.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/timeout
    creating build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/everything
    copying test/run_tests__tests/everything/sleep_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/everything
    copying test/run_tests__tests/everything/magic_tag_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/everything
    copying test/run_tests__tests/everything/fake_2_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/everything
    copying test/run_tests__tests/everything/incomplete_todo_test.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/everything
    copying test/run_tests__tests/everything/__init__.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/tests/run_tests__tests/everything
    creating build/lib.macosx-10.15-x86_64-3.8/pygame/docs
    copying docs/__init__.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/docs
    copying docs/__main__.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/docs
    creating build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/playmus.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/mask.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/sound.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/overlay.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/aacircle.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/chimp.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/liquid.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/audiocapture.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/sound_array_demos.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/midi.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/scroll.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/cursors.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/moveit.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/__init__.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/blit_blends.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/testsprite.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/textinput.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/vgrade.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/arraydemo.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/stars.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/camera.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/blend_fill.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/fonty.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/headless_no_windows_needed.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/fastevents.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/prevent_display_stretching.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/glcube.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/aliens.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/freetype_misc.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/scaletest.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/video.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/eventlist.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/scrap_clipboard.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/oldalien.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/pixelarray.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    copying examples/dropevent.py -> build/lib.macosx-10.15-x86_64-3.8/pygame/examples
    running build_ext
    building 'pygame.gfxdraw' extension
    creating build/temp.macosx-10.15-x86_64-3.8
    creating build/temp.macosx-10.15-x86_64-3.8/src_c
    creating build/temp.macosx-10.15-x86_64-3.8/src_c/SDL_gfx
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DENABLE_NEWBUF=1 -I/NEED_INC_PATH_FIX -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/Users/<user>/tmp/.venv/include -I/usr/local/Cellar/python@3.8/3.8.3/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src_c/gfxdraw.c -o build/temp.macosx-10.15-x86_64-3.8/src_c/gfxdraw.o
    In file included from src_c/gfxdraw.c:33:
    In file included from src_c/pygame.h:32:
    src_c/_pygame.h:216:10: fatal error: 'SDL.h' file not found
    #include <SDL.h>
             ^~~~~~~
    1 error generated.
    ---
    For help with compilation see:
        https://www.pygame.org/wiki/MacCompile
    To contribute to pygame development see:
        https://www.pygame.org/contribute.html
    ---
    error: command 'clang' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Users/<user>/tmp/.venv/bin/python3 -u -c 'import sys,'"'"'exec'"'"'))' install --record /private/var/folders/g1/3v27bfbx7092tndxwyq0vdv80000gn/T/pip-record-2mhljjki/install-record.txt --single-version-externally-managed --compile --install-headers /Users/<user>/tmp/.venv/include/site/python3.8/pygame Check the logs for full command output.

解决方法

错误非常明显,您需要先通过brew安装SDL(pip将不会安装任何brew软件包,它只会安装Python模块,而SDL不会)。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


依赖报错 idea导入项目后依赖报错,解决方案:https://blog.csdn.net/weixin_42420249/article/details/81191861 依赖版本报错:更换其他版本 无法下载依赖可参考:https://blog.csdn.net/weixin_42628809/a
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下 2021-12-03 13:33:33.927 ERROR 7228 [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPL
错误1:gradle项目控制台输出为乱码 # 解决方案:https://blog.csdn.net/weixin_43501566/article/details/112482302 # 在gradle-wrapper.properties 添加以下内容 org.gradle.jvmargs=-Df
错误还原:在查询的过程中,传入的workType为0时,该条件不起作用 &lt;select id=&quot;xxx&quot;&gt; SELECT di.id, di.name, di.work_type, di.updated... &lt;where&gt; &lt;if test=&qu
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct redisServer’没有名为‘server_cpulist’的成员 redisSetCpuAffinity(server.server_cpulist); ^ server.c: 在函数‘hasActiveC
解决方案1 1、改项目中.idea/workspace.xml配置文件,增加dynamic.classpath参数 2、搜索PropertiesComponent,添加如下 &lt;property name=&quot;dynamic.classpath&quot; value=&quot;tru
删除根组件app.vue中的默认代码后报错:Module Error (from ./node_modules/eslint-loader/index.js): 解决方案:关闭ESlint代码检测,在项目根目录创建vue.config.js,在文件中添加 module.exports = { lin
查看spark默认的python版本 [root@master day27]# pyspark /home/software/spark-2.3.4-bin-hadoop2.7/conf/spark-env.sh: line 2: /usr/local/hadoop/bin/hadoop: No s
使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams[&#39;font.sans-serif&#39;] = [&#39;SimHei&#39;] # 能正确显示负号 p
错误1:Request method ‘DELETE‘ not supported 错误还原:controller层有一个接口,访问该接口时报错:Request method ‘DELETE‘ not supported 错误原因:没有接收到前端传入的参数,修改为如下 参考 错误2:cannot r
错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen 解决方法:重启docker -&gt; systemctl r
错误1:private field ‘xxx‘ is never assigned 按Altʾnter快捷键,选择第2项 参考:https://blog.csdn.net/shi_hong_fei_hei/article/details/88814070 错误2:启动时报错,不能找到主启动类 #
报错如下,通过源不能下载,最后警告pip需升级版本 Requirement already satisfied: pip in c:\users\ychen\appdata\local\programs\python\python310\lib\site-packages (22.0.4) Coll
错误1:maven打包报错 错误还原:使用maven打包项目时报错如下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources)
错误1:服务调用时报错 服务消费者模块assess通过openFeign调用服务提供者模块hires 如下为服务提供者模块hires的控制层接口 @RestController @RequestMapping(&quot;/hires&quot;) public class FeignControl
错误1:运行项目后报如下错误 解决方案 报错2:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sb 解决方案:在pom.
参考 错误原因 过滤器或拦截器在生效时,redisTemplate还没有注入 解决方案:在注入容器时就生效 @Component //项目运行时就注入Spring容器 public class RedisBean { @Resource private RedisTemplate&lt;String
使用vite构建项目报错 C:\Users\ychen\work&gt;npm init @vitejs/app @vitejs/create-app is deprecated, use npm init vite instead C:\Users\ychen\AppData\Local\npm-