在MACBOOK上安装PYGAME时,尽管我在MAC上安装了Xcode,但还是出现了以下错误。我试图用pip命令安装pygame。
蟒蛇版本是3.7.3 pip和蟒蛇都在同一个文件夹中
用于安装的命令是:pip install pygame
收集pygame使用缓存 https://files.pythonhosted.org/packages/0f/9c/78626be04e193c0624842090fe5555b3805c050dfaa81c8094d6441db2be/pygame-1.9.6.tar.gz 安装收集的软件包:pygame运行 setup.py 安装pygame ...错误
ERROR: Complete output from command /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/tg/vsvw2pys51n86kyv6s46cx4c0000gr/T/pip-install-clye7bq4/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/tg/vsvw2pys51n86kyv6s46cx4c0000gr/T/pip-record-978dvy0k/install-record.txt --single-version-externally-managed --compile:
ERROR: running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.7
creating build/lib.macosx-10.9-x86_64-3.7/pygame
copying src_py/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/pygame
copying src_py/_camera_opencv_highgui.py -> build/lib.macosx-10.9-x86_64-3.7/pygame
copying src_py/_camera_vidcapture.py -> build/lib.macosx-10.9-x86_64-3.7/pygame
copying src_py/_dummybackend.py -> build/lib.macosx-10.9-x86_64-3.7/pygame
copying src_py/_numpysndarray.py -> build/lib.macosx-10.9-x86_64-3.7/pygame
copying src_py/_numpysurfarray.py -> build/lib.macosx-10.9-x86_64-3.7/pygame
copying src_py/camera.py -> build/lib.macosx-10.9-x86_64-3.7/pygame
copying src_py/colordict.py -> build/lib.macosx-10.9-x86_64-3.7/pygame
copying src_py/compat.py -> build/lib.macosx-10.9-x86_64-3.7/pygame
copying src_py/cursors.py -> build/lib.macosx-10.9-x86_64-3.7/pygame
copying src_py/draw_py.py -> build/lib.macosx-10.9-x86_64-3.7/pygame
copying src_py/freetype.py -> build/lib.macosx-10.9-x86_64-3.7/pygame
copying src_py/ftfont.py -> build/lib.macosx-10.9-x86_64-3.7/pygame
copying src_py/locals.py -> build/lib.macosx-10.9-x86_64-3.7/pygame
copying src_py/macosx.py -> build/lib.macosx-10.9-x86_64-3.7/pygame
copying src_py/midi.py -> build/lib.macosx-10.9-x86_64-3.7/pygame
copying src_py/pkgdata.py -> build/lib.macosx-10.9-x86_64-3.7/pygame
copying src_py/sndarray.py -> build/lib.macosx-10.9-x86_64-3.7/pygame
copying src_py/sprite.py -> build/lib.macosx-10.9-x86_64-3.7/pygame
copying src_py/surfarray.py -> build/lib.macosx-10.9-x86_64-3.7/pygame
copying src_py/sysfont.py -> build/lib.macosx-10.9-x86_64-3.7/pygame
copying src_py/version.py -> build/lib.macosx-10.9-x86_64-3.7/pygame
creating build/lib.macosx-10.9-x86_64-3.7/pygame/threads
copying src_py/threads/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/threads
copying src_py/threads/Py25Queue.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/threads
creating build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/__main__.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/base_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/blit_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/bufferproxy_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/camera_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/cdrom_tags.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/cdrom_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/color_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/compat_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/constants_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/cursors_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/display_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/draw_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/event_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/fastevent_tags.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/fastevent_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/font_tags.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/font_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/freetype_tags.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/freetype_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/ftfont_tags.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/ftfont_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/gfxdraw_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/image__save_gl_surface_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/image_tags.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/image_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/imageext_tags.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/imageext_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/joystick_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/key_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/mask_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/math_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/midi_tags.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/midi_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/mixer_music_tags.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/mixer_music_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/mixer_tags.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/mixer_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/mouse_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/overlay_tags.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/overlay_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/pixelarray_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/pixelcopy_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/rect_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/rwobject_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/scrap_tags.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/scrap_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/sndarray_tags.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/sndarray_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/sprite_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/surface_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/surfarray_tags.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/surfarray_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/surflock_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/sysfont_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/test_test_.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/threads_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/time_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/touch_tags.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/touch_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/transform_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
copying test/version_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests
creating build/lib.macosx-10.9-x86_64-3.7/pygame/tests/test_utils
copying test/test_utils/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/test_utils
copying test/test_utils/arrinter.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/test_utils
copying test/test_utils/async_sub.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/test_utils
copying test/test_utils/buftools.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/test_utils
copying test/test_utils/endian.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/test_utils
copying test/test_utils/png.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/test_utils
copying test/test_utils/run_tests.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/test_utils
copying test/test_utils/test_machinery.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/test_utils
copying test/test_utils/test_runner.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/test_utils
creating build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests
copying test/run_tests__tests/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests
copying test/run_tests__tests/run_tests__test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests
creating build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/fake_2_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/fake_3_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/fake_4_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/fake_5_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/fake_6_test.py -> build/lib.macosx-10.9-x86_64-3.7/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.9-x86_64-3.7/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/zero_tests_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/all_ok
creating build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/failures1
copying test/run_tests__tests/failures1/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/failures1
copying test/run_tests__tests/failures1/fake_2_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/failures1
copying test/run_tests__tests/failures1/fake_3_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/failures1
copying test/run_tests__tests/failures1/fake_4_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/failures1
creating build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/incomplete
copying test/run_tests__tests/incomplete/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/incomplete
copying test/run_tests__tests/incomplete/fake_2_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/incomplete
copying test/run_tests__tests/incomplete/fake_3_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/incomplete
creating build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/infinite_loop
copying test/run_tests__tests/infinite_loop/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/infinite_loop
copying test/run_tests__tests/infinite_loop/fake_1_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/infinite_loop
copying test/run_tests__tests/infinite_loop/fake_2_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/infinite_loop
creating build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/print_stderr
copying test/run_tests__tests/print_stderr/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/print_stderr
copying test/run_tests__tests/print_stderr/fake_2_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/print_stderr
copying test/run_tests__tests/print_stderr/fake_3_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/print_stderr
copying test/run_tests__tests/print_stderr/fake_4_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/print_stderr
creating build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/print_stdout
copying test/run_tests__tests/print_stdout/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/print_stdout
copying test/run_tests__tests/print_stdout/fake_2_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/print_stdout
copying test/run_tests__tests/print_stdout/fake_3_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/print_stdout
copying test/run_tests__tests/print_stdout/fake_4_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/print_stdout
creating build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/incomplete_todo
copying test/run_tests__tests/incomplete_todo/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/incomplete_todo
copying test/run_tests__tests/incomplete_todo/fake_2_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/incomplete_todo
copying test/run_tests__tests/incomplete_todo/fake_3_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/incomplete_todo
creating build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/exclude
copying test/run_tests__tests/exclude/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/exclude
copying test/run_tests__tests/exclude/fake_2_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/exclude
copying test/run_tests__tests/exclude/invisible_tag_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/exclude
copying test/run_tests__tests/exclude/magic_tag_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/exclude
creating build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/timeout
copying test/run_tests__tests/timeout/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/timeout
copying test/run_tests__tests/timeout/fake_2_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/timeout
copying test/run_tests__tests/timeout/sleep_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/timeout
creating build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/fake_2_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/incomplete_todo_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/magic_tag_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/sleep_test.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/tests/run_tests__tests/everything
creating build/lib.macosx-10.9-x86_64-3.7/pygame/docs
copying docs/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/docs
copying docs/__main__.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/docs
creating build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/aacircle.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/aliens.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/arraydemo.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/audiocapture.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/blend_fill.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/blit_blends.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/camera.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/chimp.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/cursors.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/dropevent.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/eventlist.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/fastevents.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/fonty.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/freetype_misc.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/glcube.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/headless_no_windows_needed.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/liquid.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/mask.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/midi.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/moveit.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/oldalien.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/overlay.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/pixelarray.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/playmus.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/prevent_display_stretching.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/scaletest.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/scrap_clipboard.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/scroll.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/sound.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/sound_array_demos.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/stars.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/testsprite.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/textinput.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/vgrade.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
copying examples/video.py -> build/lib.macosx-10.9-x86_64-3.7/pygame/examples
running build_ext
building 'pygame.gfxdraw' extension
creating build/temp.macosx-10.9-x86_64-3.7
creating build/temp.macosx-10.9-x86_64-3.7/src_c
creating build/temp.macosx-10.9-x86_64-3.7/src_c/SDL_gfx
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DENABLE_NEWBUF=1 -I/NEED_INC_PATH_FIX -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src_c/gfxdraw.c -o build/temp.macosx-10.9-x86_64-3.7/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 'gcc' failed with exit status 1
----------------------------------------
错误:命令“/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7-u-c'导入setuptools,tokenize;file='”“'/private/var/folders/tg/vsvw2pys51n86kyv6s46cx4c0000gr/T/pip-install-clye7bq4/pygame/setup.py'”“”“”;f=getattr(tokenize'”“'open'”“,打开)(文件);code=f.read().replace('”“''”“”',“”“”“\n”“”);f.close();exec(编译(代码,文件,“””“执行”“””))'install--record/private/var/folders/tg/vsvw2pys51n86kyv6s46cx4c0000gr/T/pip-record-978dvy0k/install-record。txt--单一版本外部管理--编译“失败,错误代码为1,位于/private/var/folders/tg/vsvw2pys51n86kyv6s46cx4c0000gr/T/pip-install-clye7bq4/pygame中/
此错误意味着您缺少共享库。在这种情况下,它是SDL。
如果你看一下pygame wiki上的Mac安装说明,你会发现它希望你安装一些pygame所需的其他库,以便正确安装和运行。
它希望您使用自制软件来安装一些 SDL 库和一个名为 hg
的软件包,这是反复无常的。
如果您安装了home brew,您可以简单地运行:
brew install hg sdl sdl_image sdl_mixer sdl_ttf portmidi
然后像以前一样重新安装pygame。
我在MacOS上,试图安装pygame,但一直收到“没有名为‘pygame’的模块”错误。 在终端中开始,使用 它报告了错误: 一些答案暗示pygame与我当前的python版本3.8不兼容。于是我安装了python3.7.7,成功安装了pygame。数字一(one) 使用运行测试 终端显示<code>OK</code>。2. 我尝试在 pycharm 中运行一个项目并在 IDLE 中,两者都给了
本小节我们将介绍如何在 MacOS 平台安装 Java 。 如果你想在其他平台安装 Java,请查看对应平台的安装教程: 在 Windows 上安装 Java 在 Linux 上安装 Java 1. 下载安装包 我们首先打开 Oracle 官网的 JDK 下载地址,找到 Java SE 14 版块,点击 JDK Download 按钮。 点击 JDK Download 按钮后我们会跳转到 JDK
我试图在MacOS Big Sur上安装Apache NetBeans IDE,但一开始失败了 这是我的java版本 我试着编辑这篇文章。个人资料或。正如一些人在其他回答中所说,java_home的bash_配置文件,但它什么也没做。
主要内容:使用 Homebrew 安装,手动下载安装,镜像加速使用 Homebrew 安装 macOS 我们可以使用 Homebrew 来安装 Docker。 Homebrew 的 Cask 已经支持 Docker for Mac,因此可以很方便的使用 Homebrew Cask 来进行安装: 在载入 Docker app 后,点击 Next,可能会询问你的 macOS 登陆密码,你输入即可。之后会弹出一个 Docker 运行的提示窗口,状态栏上也有有个小鲸
主要内容:下载 MongoDB,安装 MongoDB,验证安装在 Mac OS 系统下安装 MongoDB 与在 Linux 下安装比较相似,本节我们就来详细介绍一下 Mac OS 系统下如何安装 MongoDB。 下载 MongoDB 与在 Linux 系统下安装 MongoDB 相同,首先我们需要在 MongoDB 的官网获得 MongoDB 安装包的下载链接,如下图所示: 图:MongoDB 官网 得到下载链接后,使用 命令进入 /usr/local
IDEA 安装 IDEA 安装(MacOS) 请先至 钉盘 - 网聚宝开发指南-资源 - MacOS - Intelij IDEA 下载 安装包和密钥至电脑。 直接打开将程序拷入Application 进行安装。 安装完毕后打开,进行激活码验证。 如有弹出验证窗口请选择Activation code单选按钮或打开菜单栏找到help菜单中的register子菜单中进行选择。 将 密钥 粘贴至Past