我正在尝试在anaconda安装上为Python 3安装pygame。
我运行pip install pygame
,它输出以下内容:
Collecting pygame
Using cached pygame-1.9.3.tar.gz
Building wheels for collected packages: pygame
Running setup.py bdist_wheel for pygame ... error
Complete output from command //anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/s0/514rk5j90q90x4s8n48ry7wc0000gn/T/pip-build-2n_0kk3y/pygame/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /var/folders/s0/514rk5j90q90x4s8n48ry7wc0000gn/T/tmpybu68q2lpip-wheel- --python-tag cp35:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.6-x86_64-3.5
creating build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/_camera_opencv_highgui.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/_camera_vidcapture.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/_dummybackend.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/_numpysndarray.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/_numpysurfarray.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/camera.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/colordict.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/compat.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/cursors.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/font.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/freetype.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/ftfont.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/locals.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/macosx.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/midi.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/pkgdata.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/sndarray.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/sprite.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/surfarray.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/sysfont.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/version.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
creating build/lib.macosx-10.6-x86_64-3.5/pygame/gp2x
copying lib/gp2x/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/gp2x
copying lib/gp2x/constants.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/gp2x
copying lib/gp2x/locals.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/gp2x
creating build/lib.macosx-10.6-x86_64-3.5/pygame/threads
copying lib/threads/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/threads
copying lib/threads/Py25Queue.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/threads
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/__main__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/base_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/blit_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/bufferproxy_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/camera_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/cdrom_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/cdrom_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/color_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/compat_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/cursors_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/display_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/draw_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/event_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/fastevent_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/font_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/font_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/freetype_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/freetype_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/ftfont_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/ftfont_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/gfxdraw_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/image__save_gl_surface_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/image_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/image_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/imageext_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/imageext_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/joystick_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/key_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/mask_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/math_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/midi_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/midi_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/mixer_music_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/mixer_music_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/mixer_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/mixer_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/mouse_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/overlay_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/pixelarray_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/pixelcopy_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/rect_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/rwobject_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/scrap_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/scrap_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/sndarray_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/sndarray_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/sprite_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/surface_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/surfarray_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/surfarray_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/surflock_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/sysfont_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/test_test_.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/threads_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/time_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/transform_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/arrinter.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/async_sub.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/buftools.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/endian.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/png.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/run_tests.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/test_machinery.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/test_runner.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests
copying test/run_tests__tests/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests
copying test/run_tests__tests/run_tests__test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/fake_2_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/fake_3_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/fake_4_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/fake_5_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/fake_6_test.py -> build/lib.macosx-10.6-x86_64-3.5/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.6-x86_64-3.5/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/zero_tests_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/all_ok
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/failures1
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/incomplete_todo
copying test/run_tests__tests/incomplete_todo/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/incomplete_todo
copying test/run_tests__tests/incomplete_todo/fake_2_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/incomplete_todo
copying test/run_tests__tests/incomplete_todo/fake_3_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/incomplete_todo
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/exclude
copying test/run_tests__tests/exclude/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/exclude
copying test/run_tests__tests/exclude/fake_2_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/exclude
copying test/run_tests__tests/exclude/invisible_tag_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/exclude
copying test/run_tests__tests/exclude/magic_tag_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/exclude
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/timeout
copying test/run_tests__tests/timeout/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/timeout
copying test/run_tests__tests/timeout/fake_2_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/timeout
copying test/run_tests__tests/timeout/sleep_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/timeout
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/fake_2_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/incomplete_todo_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/magic_tag_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/sleep_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/everything
creating build/lib.macosx-10.6-x86_64-3.5/pygame/docs
copying docs/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/docs
copying docs/__main__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/docs
creating build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/aacircle.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/aliens.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/arraydemo.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/blend_fill.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/blit_blends.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/camera.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/chimp.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/cursors.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/eventlist.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/fastevents.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/fonty.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/freetype_misc.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/glcube.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/headless_no_windows_needed.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/liquid.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/mask.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/midi.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/moveit.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/oldalien.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/overlay.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/pixelarray.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/playmus.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/prevent_display_stretching.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/scaletest.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/scrap_clipboard.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/scroll.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/sound.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/sound_array_demos.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/stars.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/testsprite.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/vgrade.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
running build_ext
building 'pygame.scrap' extension
creating build/temp.macosx-10.6-x86_64-3.5
creating build/temp.macosx-10.6-x86_64-3.5/src
/usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda/include -arch x86_64 -DENABLE_NEWBUF=1 -I/NEED_INC_PATH_FIX -I//anaconda/include/python3.5m -c src/scrap.c -o build/temp.macosx-10.6-x86_64-3.5/src/scrap.o
src/scrap.c:27:10: fatal error: 'SDL.h' file not found
#include "SDL.h"
^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1
----------------------------------------
Failed building wheel for pygame
Running setup.py clean for pygame
Failed to build pygame
Installing collected packages: pygame
Running setup.py install for pygame ... error
Complete output from command //anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/s0/514rk5j90q90x4s8n48ry7wc0000gn/T/pip-build-2n_0kk3y/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 /var/folders/s0/514rk5j90q90x4s8n48ry7wc0000gn/T/pip-yhcf0tlb-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.6-x86_64-3.5
creating build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/_camera_opencv_highgui.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/_camera_vidcapture.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/_dummybackend.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/_numpysndarray.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/_numpysurfarray.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/camera.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/colordict.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/compat.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/cursors.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/font.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/freetype.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/ftfont.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/locals.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/macosx.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/midi.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/pkgdata.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/sndarray.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/sprite.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/surfarray.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/sysfont.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/version.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
creating build/lib.macosx-10.6-x86_64-3.5/pygame/gp2x
copying lib/gp2x/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/gp2x
copying lib/gp2x/constants.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/gp2x
copying lib/gp2x/locals.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/gp2x
creating build/lib.macosx-10.6-x86_64-3.5/pygame/threads
copying lib/threads/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/threads
copying lib/threads/Py25Queue.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/threads
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/__main__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/base_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/blit_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/bufferproxy_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/camera_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/cdrom_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/cdrom_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/color_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/compat_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/cursors_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/display_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/draw_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/event_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/fastevent_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/font_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/font_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/freetype_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/freetype_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/ftfont_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/ftfont_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/gfxdraw_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/image__save_gl_surface_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/image_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/image_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/sprite_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/surface_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/surfarray_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/surfarray_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/surflock_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/sysfont_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/test_test_.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/threads_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/time_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/transform_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/arrinter.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/async_sub.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/buftools.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/endian.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/png.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/run_tests.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/test_machinery.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/test_runner.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests
copying test/run_tests__tests/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests
copying test/run_tests__tests/run_tests__test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/fake_2_test.py ->
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/print_stdout
copying test/run_tests__tests/print_stdout/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/print_stdout
copying test/run_tests__tests/print_stdout/fake_2_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/print_stdout
copying test/run_tests__tests/print_stdout/fake_3_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/print_stdout
copying test/run_tests__tests/print_stdout/fake_4_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/print_stdout
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/incomplete_todo
copying test/run_tests__tests/incomplete_todo/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/incomplete_todo
copying test/run_tests__tests/incomplete_todo/fake_2_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/incomplete_todo
copying test/run_tests__tests/incomplete_todo/fake_3_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/incomplete_todo
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/exclude
copying test/run_tests__tests/exclude/__init__.py ->
copying examples/sound.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/sound_array_demos.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/stars.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/testsprite.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/vgrade.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
running build_ext
building 'pygame.scrap' extension
creating build/temp.macosx-10.6-x86_64-3.5
creating build/temp.macosx-10.6-x86_64-3.5/src
/usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda/include -arch x86_64 -DENABLE_NEWBUF=1 -I/NEED_INC_PATH_FIX -I//anaconda/include/python3.5m -c src/scrap.c -o build/temp.macosx-10.6-x86_64-3.5/src/scrap.o
src/scrap.c:27:10: fatal error: 'SDL.h' file not found
#include "SDL.h"
^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1
----------------------------------------
Command "//anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/s0/514rk5j90q90x4s8n48ry7wc0000gn/T/pip-build-2n_0kk3y/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 /var/folders/s0/514rk5j90q90x4s8n48ry7wc0000gn/T/pip-yhcf0tlb-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/s0/514rk5j90q90x4s8n48ry7wc0000gn/T/pip-build-2n_0kk3y/pygame/
是的,巨大!我已经减少了行的负载,copying lib/...
使其适合SE的30,000个字符的限制。
我尝试了以下方法:
pip install pygame
pip install pygame --no-cache-dir
pip install pygame --force-reinstall
pip install pygame --no-binary :all:
pip install pygame --no-use-wheel
他们都给出了基本相同的错误。
我无法解决问题所在,因为这是全新安装的anaconda。
这些行:
#include "SDL.h"
^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1
显然是最重要的部分,这意味着代码中存在错误。这里有明显的错误吗?如果它是Python脚本,则不应运行它,因为它已被注释掉。
我GOOGLE了错误,和其他人一样类似的错误在这里需要运行xcode-select --install
来解决它。
如果运行该命令,则会得到以下信息:
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
所以那不是我的问题。
还有一条重要的线:
Running setup.py bdist_wheel for pygame ... error
有人对我有帮助的见解吗?
只需运行此命令,您就可以使用最新版本的PyGame。此命令将安装导致错误的缺少的依赖项。
brew install sdl sdl_image sdl_mixer sdl_ttf portmidi
然后,您可以运行pip install pygame
,它将正常运行。
问题内容: 尝试使用pip安装pygame时出现以下错误: 我不知道这意味着什么,当我在其他地方抬头告诉我修复环境变量时,我也不知道。但这仍然行不通。 问题答案: 更新: Pygame 1.9.4 已发布,您可以再次使用pip下载并安装它。在Windows中,我建议使用以下命令进行安装: 尚无适用于Python 3.7的官方预编译pygame软件包,因此无法正常工作,但您可以从以下网址获得pyga
我将.whl文件放入python27\scripts目录,并尝试在Windows Power Shell(命令行,而不是Python解释器)中使用,错误消息如下: 我尝试使用Python2.7.8(如果我没有错,是Python2.7的更高版本)安装pygame,但我遇到了其他错误,我认为可以通过重新安装来修复这些错误。我对编程和使用命令行非常陌生;感谢任何帮助。
我在华硕的Windows 10上。我正在使用python 3.8。我在另一台计算机上成功安装了pygame(联想瑜伽,相同的操作系统)并且工作正常。然后我尝试使用 pip 在这台计算机(华硕)上安装相同的软件包,并且工作得很好。问题是当我尝试在 中导入 时,模块似乎没有退出 在python控制台上导入或使用默认IDLE可以正常工作。我还尝试从Pycharm导入包,既使用快速修复程序,又转到文件 安
问题内容: MacOS Sierra 是给我下面的错误:,,。我没有在文件夹树下看到此SDL / SDL.h文件。 给了我以下错误。 问题答案: 这有助于解决问题。必要时使用。
问题内容: 这是我的错误信息: 所以2.7找不到pygame。这是在新安装的python上,而且我可以进入其他模块(pyo,wx,numpy)。我已经重新安装了pygame并在相应的库文件夹中查看,但在任何地方都找不到pygame模块。重新安装不能解决此问题。有什么建议吗? 编辑:在回答问题时,我怎么安装pygame的,我从这里位于的.dmg安装http://www.pygame.org/down
我在pyplay上做了一个Tamagotchi项目,在这个早期阶段,程序运行非常缓慢。你对原因有什么提示吗?还有,有没有办法加快速度? 到目前为止,这是我的代码: