Getting pygame installed [duplicate] - python

This question already has answers here:
pygame installation issue in mac os
(5 answers)
Closed 3 years ago.
I am trying to install pygame for Python 3 on an anaconda install.
I run pip install pygame, and it outputs the following:
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/
Yes, it's huge! I have cut out loads of lines like copying lib/... to fit inside the 30,000 character limit of SE.
I have tried the following:
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
They all gave basically the same error.
I can't work out what is wrong, as this is a brand new install of anaconda.
The lines:
#include "SDL.h"
^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1
are obviously the most important part, which implies a bug in the code. Is there an obvious error here? If it is a Python script, then it shouldn't be run, as it is commented out.
I've googled the error, and other people with a similar error like here needed to run xcode-select --install to solve it.
If I run that, I get this:
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
So that is not my problem.
There is also the important line:
Running setup.py bdist_wheel for pygame ... error
Does anyone have any insights that might help me?

Just run this and you'll be able to work with the latest version of PyGame.
This command installs the missing dependencies that cause your error.
brew install sdl sdl_image sdl_mixer sdl_ttf portmidi
Then you can run pip install pygame and it will work fine.

The problem is in new XCode that shut down some support ( I got similar issue with wxPython ) but I managed to make pygame work (version 1.9.2) so try pip install pygame==1.9.2 since it is by default trying to get 1.9.3
Also the #include "SDL.h" is C++, not python, so it is not a comment, rather it is importing a library SDL :)

Related

Running setup.py install for pyxb ... error

I'm running the command python3.9 -m pip install pyxb in a virtual environment and receiving these errors. I cannot figure out a meaningful message inside the logs. Am I missing something?
(saleor-venv) ec2-user#ip-12-3-3-2:~/repo/fork/saleor> python3.9 -m pip install pyxb
Collecting pyxb
Downloading PyXB-1.2.6.tar.gz (7.0 MB)
|████████████████████████████████| 7.0 MB 4.5 MB/s
Using legacy 'setup.py install' for pyxb, since package 'wheel' is not installed.
Installing collected packages: pyxb
Running setup.py install for pyxb ... error
ERROR: Command errored out with exit status -9:
command: /home/ec2-user/repo/fork/saleor/saleor-venv/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ofpqfy5f/pyxb_5f99ab2ae6bd48aeb20205fc5a95659a/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ofpqfy5f/pyxb_5f99ab2ae6bd48aeb20205fc5a95659a/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-vkevgofl/install-record.txt --single-version-externally-managed --compile --install-headers /home/ec2-user/repo/fork/saleor/saleor-venv/include/site/python3.9/pyxb
cwd: /tmp/pip-install-ofpqfy5f/pyxb_5f99ab2ae6bd48aeb20205fc5a95659a/
Complete output (357 lines):
Found bundle in /tmp/pip-install-ofpqfy5f/pyxb_5f99ab2ae6bd48aeb20205fc5a95659a/pyxb/bundles/dc
Found bundle in /tmp/pip-install-ofpqfy5f/pyxb_5f99ab2ae6bd48aeb20205fc5a95659a/pyxb/bundles/common
Found bundle in /tmp/pip-install-ofpqfy5f/pyxb_5f99ab2ae6bd48aeb20205fc5a95659a/pyxb/bundles/wssplat
Found bundle in /tmp/pip-install-ofpqfy5f/pyxb_5f99ab2ae6bd48aeb20205fc5a95659a/pyxb/bundles/saml20
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/pyxb
copying pyxb/exceptions_.py -> build/lib/pyxb
copying pyxb/__init__.py -> build/lib/pyxb
creating build/lib/pyxb/namespace
copying pyxb/namespace/utility.py -> build/lib/pyxb/namespace
copying pyxb/namespace/archive.py -> build/lib/pyxb/namespace
copying pyxb/namespace/__init__.py -> build/lib/pyxb/namespace
copying pyxb/namespace/resolution.py -> build/lib/pyxb/namespace
copying pyxb/namespace/builtin.py -> build/lib/pyxb/namespace
creating build/lib/pyxb/binding
copying pyxb/binding/xml_.py -> build/lib/pyxb/binding
copying pyxb/binding/basis.py -> build/lib/pyxb/binding
copying pyxb/binding/saxer.py -> build/lib/pyxb/binding
copying pyxb/binding/content.py -> build/lib/pyxb/binding
copying pyxb/binding/facets.py -> build/lib/pyxb/binding
copying pyxb/binding/datatypes.py -> build/lib/pyxb/binding
copying pyxb/binding/generate.py -> build/lib/pyxb/binding
copying pyxb/binding/__init__.py -> build/lib/pyxb/binding
creating build/lib/pyxb/utils
copying pyxb/utils/saxutils.py -> build/lib/pyxb/utils
copying pyxb/utils/unicode.py -> build/lib/pyxb/utils
copying pyxb/utils/domutils.py -> build/lib/pyxb/utils
copying pyxb/utils/unicode_data.py -> build/lib/pyxb/utils
copying pyxb/utils/utility.py -> build/lib/pyxb/utils
copying pyxb/utils/activestate.py -> build/lib/pyxb/utils
copying pyxb/utils/six.py -> build/lib/pyxb/utils
copying pyxb/utils/templates.py -> build/lib/pyxb/utils
copying pyxb/utils/xmlre.py -> build/lib/pyxb/utils
copying pyxb/utils/__init__.py -> build/lib/pyxb/utils
copying pyxb/utils/fac.py -> build/lib/pyxb/utils
copying pyxb/utils/saxdom.py -> build/lib/pyxb/utils
creating build/lib/pyxb/xmlschema
copying pyxb/xmlschema/structures.py -> build/lib/pyxb/xmlschema
copying pyxb/xmlschema/__init__.py -> build/lib/pyxb/xmlschema
creating build/lib/pyxb/bundles
copying pyxb/bundles/__init__.py -> build/lib/pyxb/bundles
creating build/lib/pyxb/bundles/dc
copying pyxb/bundles/dc/dcterms.py -> build/lib/pyxb/bundles/dc
copying pyxb/bundles/dc/dcmitype.py -> build/lib/pyxb/bundles/dc
copying pyxb/bundles/dc/dc.py -> build/lib/pyxb/bundles/dc
copying pyxb/bundles/dc/__init__.py -> build/lib/pyxb/bundles/dc
creating build/lib/pyxb/bundles/dc/raw
copying pyxb/bundles/dc/raw/dcterms.py -> build/lib/pyxb/bundles/dc/raw
copying pyxb/bundles/dc/raw/dcmitype.py -> build/lib/pyxb/bundles/dc/raw
copying pyxb/bundles/dc/raw/dc.py -> build/lib/pyxb/bundles/dc/raw
copying pyxb/bundles/dc/raw/__init__.py -> build/lib/pyxb/bundles/dc/raw
creating build/lib/pyxb/bundles/common
copying pyxb/bundles/common/xsd_hfp.py -> build/lib/pyxb/bundles/common
copying pyxb/bundles/common/xhtml1.py -> build/lib/pyxb/bundles/common
copying pyxb/bundles/common/xlink.py -> build/lib/pyxb/bundles/common
copying pyxb/bundles/common/__init__.py -> build/lib/pyxb/bundles/common
creating build/lib/pyxb/bundles/common/raw
copying pyxb/bundles/common/raw/xsd_hfp.py -> build/lib/pyxb/bundles/common/raw
copying pyxb/bundles/common/raw/xhtml1.py -> build/lib/pyxb/bundles/common/raw
copying pyxb/bundles/common/raw/xlink.py -> build/lib/pyxb/bundles/common/raw
copying pyxb/bundles/common/raw/__init__.py -> build/lib/pyxb/bundles/common/raw
creating build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/httpbind.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/wsp.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/wsdlx.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/ds.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/xenc.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/whttp.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/wsrf_bf.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/mimebind.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/wsdli.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/wsp200607.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/soapbind12.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/wsa.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/wsse.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/wsrf_br.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/soap11.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/soapenc.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/wscoor.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/wsrm.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/__init__.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/bpws.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/wsdl20.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/sawsdl.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/wsoap.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/wstop.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/wsu.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/wsam.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/wsdl11.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/soapbind11.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/soap12.py -> build/lib/pyxb/bundles/wssplat
copying pyxb/bundles/wssplat/wsnt.py -> build/lib/pyxb/bundles/wssplat
creating build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/httpbind.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsp.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsdlx.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/ds.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/xenc.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/whttp.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsrf_bf.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/mimebind.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsdli.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsp200607.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/soapbind12.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsa.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsse.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsrf_br.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/soap11.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/soapenc.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wscoor.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsrm.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/__init__.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/bpws.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsdl20.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/sawsdl.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsoap.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wstop.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsu.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsam.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsdl11.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/soapbind11.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/soap12.py -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsnt.py -> build/lib/pyxb/bundles/wssplat/raw
creating build/lib/pyxb/bundles/saml20
copying pyxb/bundles/saml20/xacml.py -> build/lib/pyxb/bundles/saml20
copying pyxb/bundles/saml20/assertion.py -> build/lib/pyxb/bundles/saml20
copying pyxb/bundles/saml20/x500.py -> build/lib/pyxb/bundles/saml20
copying pyxb/bundles/saml20/protocol.py -> build/lib/pyxb/bundles/saml20
copying pyxb/bundles/saml20/ecp.py -> build/lib/pyxb/bundles/saml20
copying pyxb/bundles/saml20/__init__.py -> build/lib/pyxb/bundles/saml20
copying pyxb/bundles/saml20/metadata.py -> build/lib/pyxb/bundles/saml20
copying pyxb/bundles/saml20/dce.py -> build/lib/pyxb/bundles/saml20
creating build/lib/pyxb/bundles/saml20/raw
copying pyxb/bundles/saml20/raw/xacml.py -> build/lib/pyxb/bundles/saml20/raw
copying pyxb/bundles/saml20/raw/assertion.py -> build/lib/pyxb/bundles/saml20/raw
copying pyxb/bundles/saml20/raw/x500.py -> build/lib/pyxb/bundles/saml20/raw
copying pyxb/bundles/saml20/raw/protocol.py -> build/lib/pyxb/bundles/saml20/raw
copying pyxb/bundles/saml20/raw/ecp.py -> build/lib/pyxb/bundles/saml20/raw
copying pyxb/bundles/saml20/raw/__init__.py -> build/lib/pyxb/bundles/saml20/raw
copying pyxb/bundles/saml20/raw/metadata.py -> build/lib/pyxb/bundles/saml20/raw
copying pyxb/bundles/saml20/raw/dce.py -> build/lib/pyxb/bundles/saml20/raw
copying pyxb/bundles/dc/raw/dc.wxs -> build/lib/pyxb/bundles/dc/raw
copying pyxb/bundles/common/raw/xhtml1.wxs -> build/lib/pyxb/bundles/common/raw
copying pyxb/bundles/common/raw/xsd_hfp.wxs -> build/lib/pyxb/bundles/common/raw
copying pyxb/bundles/common/raw/xlink.wxs -> build/lib/pyxb/bundles/common/raw
copying pyxb/bundles/wssplat/raw/httpbind.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/ds.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsdli.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/soap12.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsoap.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsrf_bf.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/soapbind12.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsnt.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wscoor.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsrm.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsse.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/soapenc.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsdl11.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsu.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/whttp.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsp.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsa.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsdl20.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/xenc.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsdlx.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/sawsdl.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/soapbind11.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/soap11.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/bpws.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/mimebind.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wstop.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsrf_br.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsp200607.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/wssplat/raw/wsam.wxs -> build/lib/pyxb/bundles/wssplat/raw
copying pyxb/bundles/saml20/raw/xacml.wxs -> build/lib/pyxb/bundles/saml20/raw
copying pyxb/bundles/saml20/raw/protocol.wxs -> build/lib/pyxb/bundles/saml20/raw
copying pyxb/bundles/saml20/raw/x500.wxs -> build/lib/pyxb/bundles/saml20/raw
copying pyxb/bundles/saml20/raw/metadata.wxs -> build/lib/pyxb/bundles/saml20/raw
copying pyxb/bundles/saml20/raw/dce.wxs -> build/lib/pyxb/bundles/saml20/raw
copying pyxb/bundles/saml20/raw/ecp.wxs -> build/lib/pyxb/bundles/saml20/raw
copying pyxb/bundles/saml20/raw/assertion.wxs -> build/lib/pyxb/bundles/saml20/raw
running build_scripts
creating build/scripts-3.9
copying and adjusting scripts/pyxbgen -> build/scripts-3.9
copying and adjusting scripts/pyxbwsdl -> build/scripts-3.9
copying and adjusting scripts/pyxbdump -> build/scripts-3.9
changing mode of build/scripts-3.9/pyxbgen from 644 to 755
changing mode of build/scripts-3.9/pyxbwsdl from 644 to 755
changing mode of build/scripts-3.9/pyxbdump from 644 to 755
running install_lib
copying build/lib/pyxb/exceptions_.py -> /home/ec2-user/repo/fork/saleor/saleor-venv/lib/python3.9/site-packages/pyxb
copying build/lib/pyxb/__init__.py -> /home/ec2-user/repo/fork/saleor/saleor-venv/lib/python3.9/site-packages/pyxb
copying build/lib/pyxb/namespace/utility.py -> /home/ec2-user/repo/fork/saleor/saleor-venv/lib/python3.9/site-packages/pyxb/namespace
copying build/lib/pyxb/namespace/archive.py -> /home/ec2-user/repo/fork/saleor/saleor-venv/lib/python3.9/site-packages/pyxb/namespace
copying build/lib/pyxb/namespace/__init__.py -> /home/ec2-user/repo/fork/saleor/saleor-venv/lib/python3.9/site-packages/pyxb/namespace
copying build/lib/pyxb/namespace/resolution.py -> /home/ec2-user/repo/fork/saleor/saleor-venv/lib/python3.9/site-packages/pyxb/namespace
copying build/lib/pyxb/namespace/builtin.py -> /home/ec2-user/repo/fork/saleor/saleor-venv/lib/python3.9/site-packages/pyxb/namespace
copying build/lib/pyxb/binding/xml_.py -> /home/ec2-user/repo/fork/saleor/saleor-venv/lib/python3.9/site-packages/pyxb/binding
copying build/lib/pyxb/binding/basis.py -> /home/ec2-user/repo/fork/saleor/saleor-venv/lib/python3.9/site-packages/pyxb/binding
...
copying build/lib/pyxb/bundles/saml20/dce.py -> /home/ec2-user/repo/fork/saleor/saleor-venv/lib/python3.9/site-packages/pyxb/bundles/saml20
copying build/lib/pyxb/bundles/saml20/raw/xacml.py -> /home/ec2-user/repo/fork/saleor/saleor-venv/lib/python3.9/site-packages/pyxb/bundles/saml20/raw
copying build/lib/pyxb/bundles/saml20/raw/assertion.py -> /home/ec2-user/repo/fork/saleor/saleor-venv/lib/python3.9/site-packages/pyxb/bundles/saml20/raw
copying build/lib/pyxb/bundles/saml20/raw/x500.py -> /home/ec2-user/repo/fork/saleor/saleor-venv/lib/python3.9/site-packages/pyxb/bundles/saml20/raw
copying build/lib/pyxb/bundles/saml20/raw/protocol.py -> /home/ec2-user/repo/fork/saleor/saleor-venv/lib/python3.9/site-packages/pyxb/bundles/saml20/raw
copying build/lib/pyxb/bundles/saml20/raw/ecp.py -> /home/ec2-user/repo/fork/saleor/saleor-venv/lib/python3.9/site-packages/pyxb/bundles/saml20/raw
copying build/lib/pyxb/bundles/saml20/raw/__init__.py -> /home/ec2-user/repo/fork/saleor/saleor-venv/lib/python3.9/site-packages/pyxb/bundles/saml20/raw
copying build/lib/pyxb/bundles/saml20/raw/metadata.py -> /home/ec2-user/repo/fork/saleor/saleor-venv/lib/python3.9/site-packages/pyxb/bundles/saml20/raw
copying build/lib/pyxb/bundles/saml20/raw/dce.py -> /home/ec2-user/repo/fork/saleor/saleor-venv/lib/python3.9/site-packages/pyxb/bundles/saml20/raw
copying build/lib/pyxb/bundles/saml20/raw/xacml.wxs -> /home/ec2-user/repo/fork/saleor/saleor-venv/lib/python3.9/site-packages/pyxb/bundles/saml20/raw
copying build/lib/pyxb/bundles/saml20/raw/protocol.wxs -> /home/ec2-user/repo/fork/saleor/saleor-venv/lib/python3.9/site-packages/pyxb/bundles/saml20/raw
copying build/lib/pyxb/bundles/saml20/raw/x500.wxs -> /home/ec2-user/repo/fork/saleor/saleor-venv/lib/python3.9/site-packages/pyxb/bundles/saml20/raw
copying build/lib/pyxb/bundles/saml20/raw/metadata.wxs -> /home/ec2-user/repo/fork/saleor/saleor-venv/lib/python3.9/site-packages/pyxb/bundles/saml20/raw
copying build/lib/pyxb/bundles/saml20/raw/dce.wxs -> /home/ec2-user/repo/fork/saleor/saleor-venv/lib/python3.9/site-packages/pyxb/bundles/saml20/raw
copying build/lib/pyxb/bundles/saml20/raw/ecp.wxs -> /home/ec2-user/repo/fork/saleor/saleor-venv/lib/python3.9/site-packages/pyxb/bundles/saml20/raw
copying build/lib/pyxb/bundles/saml20/raw/assertion.wxs -> /home/ec2-user/repo/fork/saleor/saleor-venv/lib/python3.9/site-packages/pyxb/bundles/saml20/raw
byte-compiling /home/ec2-user/repo/fork/saleor/saleor-venv/lib/python3.9/site-packages/pyxb/bundles/common/raw/xhtml1.py to xhtml1.cpython-39.pyc
----------------------------------------
ERROR: Command errored out with exit status -9: /home/ec2-user/repo/fork/saleor/saleor-venv/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ofpqfy5f/pyxb_5f99ab2ae6bd48aeb20205fc5a95659a/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ofpqfy5f/pyxb_5f99ab2ae6bd48aeb20205fc5a95659a/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-vkevgofl/install-record.txt --single-version-externally-managed --compile --install-headers /home/ec2-user/repo/fork/saleor/saleor-venv/include/site/python3.9/pyxb Check the logs for full command output.
The error got resolved by running:
(saleor-venv) ec2-user#ip-12-3-3-2:~/repo/fork/saleor> python3.9 -m pip install wheel

Building Wheel for pycryptodome

I'm installing some packages from an inherited requirements.txt file and it errors out. I've drilled down to the specific package and it's pycryptodome. I can run this without issue:
pip install pycryptodome
But I need a non-current version for dependency issues, 3.4.0 > versions >= 3.3.1 specifically, and now I'm having trouble running this command:
pip install pycryptodome==3.3.1
Error:
Collecting pycryptodome==3.3.1
Using cached pycryptodome-3.3.1.tar.gz (3.1 MB)
Building wheels for collected packages: pycryptodome
Building wheel for pycryptodome (setup.py) ... error
ERROR: Command errored out with exit status 1:
Full Error (redacted a couple things):
command: 'c:\...\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\...\\AppData\\Local\\Temp\\pip-install-vg9qpnv9\\pycryptodome_9e8bb9b16aac4d9980f22a903b99a966\\setup.py'"'"'; __file__='"'"'C:\\...\\AppData\\Local\\Temp\\pip-install-vg9qpnv9\\pycryptodome_9e8bb9b16aac4d9980f22a903b99a966\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\...\AppData\Local\Temp\pip-record-_aaaf9u0\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\...\venv\include\site\python3.7\pycryptodome'
cwd: C:\...\AppData\Local\Temp\pip-install-vg9qpnv9\pycryptodome_9e8bb9b16aac4d9980f22a903b99a966\
Complete output (220 lines):
running install
running build
running build_py
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\Crypto
copying lib\Crypto\pct_warnings.py -> build\lib.win-amd64-3.7\Crypto
copying lib\Crypto\__init__.py -> build\lib.win-amd64-3.7\Crypto
creating build\lib.win-amd64-3.7\Crypto\Cipher
copying lib\Crypto\Cipher\AES.py -> build\lib.win-amd64-3.7\Crypto\Cipher
copying lib\Crypto\Cipher\ARC2.py -> build\lib.win-amd64-3.7\Crypto\Cipher
copying lib\Crypto\Cipher\ARC4.py -> build\lib.win-amd64-3.7\Crypto\Cipher
copying lib\Crypto\Cipher\Blowfish.py -> build\lib.win-amd64-3.7\Crypto\Cipher
copying lib\Crypto\Cipher\CAST.py -> build\lib.win-amd64-3.7\Crypto\Cipher
copying lib\Crypto\Cipher\ChaCha20.py -> build\lib.win-amd64-3.7\Crypto\Cipher
copying lib\Crypto\Cipher\DES.py -> build\lib.win-amd64-3.7\Crypto\Cipher
copying lib\Crypto\Cipher\DES3.py -> build\lib.win-amd64-3.7\Crypto\Cipher
copying lib\Crypto\Cipher\PKCS1_OAEP.py -> build\lib.win-amd64-3.7\Crypto\Cipher
copying lib\Crypto\Cipher\PKCS1_v1_5.py -> build\lib.win-amd64-3.7\Crypto\Cipher
copying lib\Crypto\Cipher\Salsa20.py -> build\lib.win-amd64-3.7\Crypto\Cipher
copying lib\Crypto\Cipher\_mode_cbc.py -> build\lib.win-amd64-3.7\Crypto\Cipher
copying lib\Crypto\Cipher\_mode_ccm.py -> build\lib.win-amd64-3.7\Crypto\Cipher
copying lib\Crypto\Cipher\_mode_cfb.py -> build\lib.win-amd64-3.7\Crypto\Cipher
copying lib\Crypto\Cipher\_mode_ctr.py -> build\lib.win-amd64-3.7\Crypto\Cipher
copying lib\Crypto\Cipher\_mode_eax.py -> build\lib.win-amd64-3.7\Crypto\Cipher
copying lib\Crypto\Cipher\_mode_ecb.py -> build\lib.win-amd64-3.7\Crypto\Cipher
copying lib\Crypto\Cipher\_mode_gcm.py -> build\lib.win-amd64-3.7\Crypto\Cipher
copying lib\Crypto\Cipher\_mode_ocb.py -> build\lib.win-amd64-3.7\Crypto\Cipher
copying lib\Crypto\Cipher\_mode_ofb.py -> build\lib.win-amd64-3.7\Crypto\Cipher
copying lib\Crypto\Cipher\_mode_openpgp.py -> build\lib.win-amd64-3.7\Crypto\Cipher
copying lib\Crypto\Cipher\_mode_siv.py -> build\lib.win-amd64-3.7\Crypto\Cipher
copying lib\Crypto\Cipher\__init__.py -> build\lib.win-amd64-3.7\Crypto\Cipher
creating build\lib.win-amd64-3.7\Crypto\Hash
copying lib\Crypto\Hash\BLAKE2b.py -> build\lib.win-amd64-3.7\Crypto\Hash
copying lib\Crypto\Hash\BLAKE2s.py -> build\lib.win-amd64-3.7\Crypto\Hash
copying lib\Crypto\Hash\CMAC.py -> build\lib.win-amd64-3.7\Crypto\Hash
copying lib\Crypto\Hash\HMAC.py -> build\lib.win-amd64-3.7\Crypto\Hash
copying lib\Crypto\Hash\keccak.py -> build\lib.win-amd64-3.7\Crypto\Hash
copying lib\Crypto\Hash\MD2.py -> build\lib.win-amd64-3.7\Crypto\Hash
copying lib\Crypto\Hash\MD4.py -> build\lib.win-amd64-3.7\Crypto\Hash
copying lib\Crypto\Hash\MD5.py -> build\lib.win-amd64-3.7\Crypto\Hash
copying lib\Crypto\Hash\RIPEMD.py -> build\lib.win-amd64-3.7\Crypto\Hash
copying lib\Crypto\Hash\RIPEMD160.py -> build\lib.win-amd64-3.7\Crypto\Hash
copying lib\Crypto\Hash\SHA.py -> build\lib.win-amd64-3.7\Crypto\Hash
copying lib\Crypto\Hash\SHA1.py -> build\lib.win-amd64-3.7\Crypto\Hash
copying lib\Crypto\Hash\SHA224.py -> build\lib.win-amd64-3.7\Crypto\Hash
copying lib\Crypto\Hash\SHA256.py -> build\lib.win-amd64-3.7\Crypto\Hash
copying lib\Crypto\Hash\SHA384.py -> build\lib.win-amd64-3.7\Crypto\Hash
copying lib\Crypto\Hash\SHA3_224.py -> build\lib.win-amd64-3.7\Crypto\Hash
copying lib\Crypto\Hash\SHA3_256.py -> build\lib.win-amd64-3.7\Crypto\Hash
copying lib\Crypto\Hash\SHA3_384.py -> build\lib.win-amd64-3.7\Crypto\Hash
copying lib\Crypto\Hash\SHA3_512.py -> build\lib.win-amd64-3.7\Crypto\Hash
copying lib\Crypto\Hash\SHA512.py -> build\lib.win-amd64-3.7\Crypto\Hash
copying lib\Crypto\Hash\SHAKE128.py -> build\lib.win-amd64-3.7\Crypto\Hash
copying lib\Crypto\Hash\SHAKE256.py -> build\lib.win-amd64-3.7\Crypto\Hash
copying lib\Crypto\Hash\__init__.py -> build\lib.win-amd64-3.7\Crypto\Hash
creating build\lib.win-amd64-3.7\Crypto\IO
copying lib\Crypto\IO\PEM.py -> build\lib.win-amd64-3.7\Crypto\IO
copying lib\Crypto\IO\PKCS8.py -> build\lib.win-amd64-3.7\Crypto\IO
copying lib\Crypto\IO\_PBES.py -> build\lib.win-amd64-3.7\Crypto\IO
copying lib\Crypto\IO\__init__.py -> build\lib.win-amd64-3.7\Crypto\IO
creating build\lib.win-amd64-3.7\Crypto\PublicKey
copying lib\Crypto\PublicKey\DSA.py -> build\lib.win-amd64-3.7\Crypto\PublicKey
copying lib\Crypto\PublicKey\ElGamal.py -> build\lib.win-amd64-3.7\Crypto\PublicKey
copying lib\Crypto\PublicKey\RSA.py -> build\lib.win-amd64-3.7\Crypto\PublicKey
copying lib\Crypto\PublicKey\__init__.py -> build\lib.win-amd64-3.7\Crypto\PublicKey
creating build\lib.win-amd64-3.7\Crypto\Protocol
copying lib\Crypto\Protocol\KDF.py -> build\lib.win-amd64-3.7\Crypto\Protocol
copying lib\Crypto\Protocol\SecretSharing.py -> build\lib.win-amd64-3.7\Crypto\Protocol
copying lib\Crypto\Protocol\__init__.py -> build\lib.win-amd64-3.7\Crypto\Protocol
creating build\lib.win-amd64-3.7\Crypto\Random
copying lib\Crypto\Random\random.py -> build\lib.win-amd64-3.7\Crypto\Random
copying lib\Crypto\Random\__init__.py -> build\lib.win-amd64-3.7\Crypto\Random
creating build\lib.win-amd64-3.7\Crypto\Signature
copying lib\Crypto\Signature\DSS.py -> build\lib.win-amd64-3.7\Crypto\Signature
copying lib\Crypto\Signature\pkcs1_15.py -> build\lib.win-amd64-3.7\Crypto\Signature
copying lib\Crypto\Signature\PKCS1_PSS.py -> build\lib.win-amd64-3.7\Crypto\Signature
copying lib\Crypto\Signature\PKCS1_v1_5.py -> build\lib.win-amd64-3.7\Crypto\Signature
copying lib\Crypto\Signature\pss.py -> build\lib.win-amd64-3.7\Crypto\Signature
copying lib\Crypto\Signature\__init__.py -> build\lib.win-amd64-3.7\Crypto\Signature
creating build\lib.win-amd64-3.7\Crypto\Util
copying lib\Crypto\Util\asn1.py -> build\lib.win-amd64-3.7\Crypto\Util
copying lib\Crypto\Util\Counter.py -> build\lib.win-amd64-3.7\Crypto\Util
copying lib\Crypto\Util\number.py -> build\lib.win-amd64-3.7\Crypto\Util
copying lib\Crypto\Util\Padding.py -> build\lib.win-amd64-3.7\Crypto\Util
copying lib\Crypto\Util\py3compat.py -> build\lib.win-amd64-3.7\Crypto\Util
copying lib\Crypto\Util\RFC1751.py -> build\lib.win-amd64-3.7\Crypto\Util
copying lib\Crypto\Util\strxor.py -> build\lib.win-amd64-3.7\Crypto\Util
copying lib\Crypto\Util\_number_new.py -> build\lib.win-amd64-3.7\Crypto\Util
copying lib\Crypto\Util\_raw_api.py -> build\lib.win-amd64-3.7\Crypto\Util
copying lib\Crypto\Util\__init__.py -> build\lib.win-amd64-3.7\Crypto\Util
creating build\lib.win-amd64-3.7\Crypto\Math
copying lib\Crypto\Math\Numbers.py -> build\lib.win-amd64-3.7\Crypto\Math
copying lib\Crypto\Math\Primality.py -> build\lib.win-amd64-3.7\Crypto\Math
copying lib\Crypto\Math\_Numbers_gmp.py -> build\lib.win-amd64-3.7\Crypto\Math
copying lib\Crypto\Math\_Numbers_int.py -> build\lib.win-amd64-3.7\Crypto\Math
copying lib\Crypto\Math\__init__.py -> build\lib.win-amd64-3.7\Crypto\Math
creating build\lib.win-amd64-3.7\Crypto\SelfTest
copying lib\Crypto\SelfTest\st_common.py -> build\lib.win-amd64-3.7\Crypto\SelfTest
copying lib\Crypto\SelfTest\__init__.py -> build\lib.win-amd64-3.7\Crypto\SelfTest
copying lib\Crypto\SelfTest\__main__.py -> build\lib.win-amd64-3.7\Crypto\SelfTest
creating build\lib.win-amd64-3.7\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\common.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_AES.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_ARC2.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_ARC4.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_Blowfish.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_CAST.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_ChaCha20.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_DES.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_DES3.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_OCB.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_pkcs1_15.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_pkcs1_oaep.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_Salsa20.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\__init__.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Cipher
creating build\lib.win-amd64-3.7\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\common.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\loader.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_BLAKE2.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_CMAC.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_HMAC.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_keccak.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_MD2.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_MD4.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_MD5.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_RIPEMD160.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA1.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA224.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA256.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA384.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA3_224.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA3_256.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA3_384.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA3_512.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA512.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHAKE.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\__init__.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash
creating build\lib.win-amd64-3.7\Crypto\SelfTest\IO
copying lib\Crypto\SelfTest\IO\test_PBES.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\IO
copying lib\Crypto\SelfTest\IO\test_PKCS8.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\IO
copying lib\Crypto\SelfTest\IO\__init__.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\IO
creating build\lib.win-amd64-3.7\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\test_KDF.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\test_rfc1751.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\test_SecretSharing.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\__init__.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Protocol
creating build\lib.win-amd64-3.7\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\test_DSA.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\test_ElGamal.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\test_import_DSA.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\test_import_RSA.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\test_RSA.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\__init__.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\PublicKey
creating build\lib.win-amd64-3.7\Crypto\SelfTest\Random
copying lib\Crypto\SelfTest\Random\test_random.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Random
copying lib\Crypto\SelfTest\Random\__init__.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Random
creating build\lib.win-amd64-3.7\Crypto\SelfTest\Signature
copying lib\Crypto\SelfTest\Signature\nist.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Signature
copying lib\Crypto\SelfTest\Signature\test_dss.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Signature
copying lib\Crypto\SelfTest\Signature\test_pkcs1_15.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Signature
copying lib\Crypto\SelfTest\Signature\test_pss.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Signature
copying lib\Crypto\SelfTest\Signature\__init__.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Signature
creating build\lib.win-amd64-3.7\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\test_asn1.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\test_Counter.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\test_number.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\test_Padding.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\test_strxor.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\__init__.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Util
creating build\lib.win-amd64-3.7\Crypto\SelfTest\Math
copying lib\Crypto\SelfTest\Math\test_Numbers.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Math
copying lib\Crypto\SelfTest\Math\test_Primality.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Math
copying lib\Crypto\SelfTest\Math\__init__.py -> build\lib.win-amd64-3.7\Crypto\SelfTest\Math
creating build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors
creating build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\SHA3
copying lib\Crypto\SelfTest\Hash\test_vectors\SHA3\ShortMsgKAT_SHA3-224.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\SHA3
copying lib\Crypto\SelfTest\Hash\test_vectors\SHA3\ShortMsgKAT_SHA3-256.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\SHA3
copying lib\Crypto\SelfTest\Hash\test_vectors\SHA3\ShortMsgKAT_SHA3-384.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\SHA3
copying lib\Crypto\SelfTest\Hash\test_vectors\SHA3\ShortMsgKAT_SHA3-512.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\SHA3
copying lib\Crypto\SelfTest\Hash\test_vectors\SHA3\ShortMsgKAT_SHAKE128.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\SHA3
copying lib\Crypto\SelfTest\Hash\test_vectors\SHA3\ShortMsgKAT_SHAKE256.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\SHA3
creating build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\keccak
copying lib\Crypto\SelfTest\Hash\test_vectors\keccak\ExtremelyLongMsgKAT_224.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\keccak
copying lib\Crypto\SelfTest\Hash\test_vectors\keccak\ExtremelyLongMsgKAT_256.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\keccak
copying lib\Crypto\SelfTest\Hash\test_vectors\keccak\ExtremelyLongMsgKAT_384.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\keccak
copying lib\Crypto\SelfTest\Hash\test_vectors\keccak\ExtremelyLongMsgKAT_512.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\keccak
copying lib\Crypto\SelfTest\Hash\test_vectors\keccak\LongMsgKAT_224.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\keccak
copying lib\Crypto\SelfTest\Hash\test_vectors\keccak\LongMsgKAT_256.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\keccak
copying lib\Crypto\SelfTest\Hash\test_vectors\keccak\LongMsgKAT_384.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\keccak
copying lib\Crypto\SelfTest\Hash\test_vectors\keccak\LongMsgKAT_512.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\keccak
copying lib\Crypto\SelfTest\Hash\test_vectors\keccak\readme.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\keccak
copying lib\Crypto\SelfTest\Hash\test_vectors\keccak\ShortMsgKAT_224.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\keccak
copying lib\Crypto\SelfTest\Hash\test_vectors\keccak\ShortMsgKAT_256.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\keccak
copying lib\Crypto\SelfTest\Hash\test_vectors\keccak\ShortMsgKAT_384.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\keccak
copying lib\Crypto\SelfTest\Hash\test_vectors\keccak\ShortMsgKAT_512.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\keccak
creating build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\BLAKE2s
copying lib\Crypto\SelfTest\Hash\test_vectors\BLAKE2s\blake2s-test.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\BLAKE2s
copying lib\Crypto\SelfTest\Hash\test_vectors\BLAKE2s\tv1.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\BLAKE2s
copying lib\Crypto\SelfTest\Hash\test_vectors\BLAKE2s\tv2.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\BLAKE2s
creating build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\BLAKE2b
copying lib\Crypto\SelfTest\Hash\test_vectors\BLAKE2b\blake2b-test.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\BLAKE2b
copying lib\Crypto\SelfTest\Hash\test_vectors\BLAKE2b\tv1.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\BLAKE2b
copying lib\Crypto\SelfTest\Hash\test_vectors\BLAKE2b\tv2.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Hash\test_vectors\BLAKE2b
creating build\lib.win-amd64-3.7\Crypto\SelfTest\Signature\test_vectors
creating build\lib.win-amd64-3.7\Crypto\SelfTest\Signature\test_vectors\DSA
copying lib\Crypto\SelfTest\Signature\test_vectors\DSA\FIPS_186_3_SigGen.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Signature\test_vectors\DSA
copying lib\Crypto\SelfTest\Signature\test_vectors\DSA\FIPS_186_3_SigVer.rsp -> build\lib.win-amd64-3.7\Crypto\SelfTest\Signature\test_vectors\DSA
creating build\lib.win-amd64-3.7\Crypto\SelfTest\Signature\test_vectors\PKCS1-v1.5
copying lib\Crypto\SelfTest\Signature\test_vectors\PKCS1-v1.5\SigGen15_186-2.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Signature\test_vectors\PKCS1-v1.5
copying lib\Crypto\SelfTest\Signature\test_vectors\PKCS1-v1.5\SigGen15_186-3.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Signature\test_vectors\PKCS1-v1.5
copying lib\Crypto\SelfTest\Signature\test_vectors\PKCS1-v1.5\SigVer15_186-3.rsp -> build\lib.win-amd64-3.7\Crypto\SelfTest\Signature\test_vectors\PKCS1-v1.5
creating build\lib.win-amd64-3.7\Crypto\SelfTest\Signature\test_vectors\PKCS1-PSS
copying lib\Crypto\SelfTest\Signature\test_vectors\PKCS1-PSS\SigGenPSS_186-2.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Signature\test_vectors\PKCS1-PSS
copying lib\Crypto\SelfTest\Signature\test_vectors\PKCS1-PSS\SigGenPSS_186-3.txt -> build\lib.win-amd64-3.7\Crypto\SelfTest\Signature\test_vectors\PKCS1-PSS
copying lib\Crypto\SelfTest\Signature\test_vectors\PKCS1-PSS\SigVerPSS_186-3.rsp -> build\lib.win-amd64-3.7\Crypto\SelfTest\Signature\test_vectors\PKCS1-PSS
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
running build_ext
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\...\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\...\\AppData\\Local\\Temp\\pip-install-vg9qpnv9\\pycryptodome_9e8bb9b16aac4d9980f22a903b99a966\\setup.py'"'"'; __file__='"'"'C:\...\\AppData\\Local\\Temp\\pip-install-vg9qpnv9\\pycryptodome_9e8bb9b16aac4d9980f22a903b99a966\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\..\AppData\Local\Temp\pip-record-_aaaf9u0\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\...\venv\include\site\python3.7\pycryptodome' Check the logs for full command output.
The binary wheel for pycryptodome 3.3.1 is only available for Python 3.5, which was the most recent at that time.
Your command is failing because pip is trying to compile it from sources, but you need to have MSVC installed for that. Instructions are here:
https://pycryptodome.readthedocs.io/en/latest/src/installation.html#windows-from-sources-python-3-5-and-newer

Trying to pip install pygame "error: command 'clang' failed with exit status 1" [duplicate]

This question already has answers here:
pip install pygame - SDL.h file not found
(2 answers)
Closed 2 years ago.
I'm a rookie. Not sure what I have done in the installation of brew/pip/python but I keep getting this error when I try and 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, 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 Check the logs for full command output.
The error is quite clear, you need to install SDL first with brew (pip will not install any brew package, it will only install Python modules, which SDL isn't).

I can't install Pygame in my Mac using pip due to two errors [duplicate]

MacOS Sierra
➜ fun_python $ pip --version
pip 9.0.1 from /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (python 3.5)
pip install pygame is giving me the following error: src/scrap.c:27:10: fatal error: 'SDL.h' file not found, error: command '/usr/bin/clang' failed with exit status 1, #include "SDL.h". I don't see this SDL/SDL.h file under /usr/include/... folder tree.
gave me the following error.
➜ fun_python $ pip install pygame
Collecting pygame
Downloading pygame-1.9.3.tar.gz (3.0MB)
100% |████████████████████████████████| 3.0MB 490kB/s
Installing collected packages: pygame
Running setup.py install for pygame ... error
Complete output from command /Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/lx/smky81v534q9ydghqkjbkqv80000gp/T/pip-build-to90wzsv/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/lx/smky81v534q9ydghqkjbkqv80000gp/T/pip-jhi5wezf-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.6-intel-3.5
creating build/lib.macosx-10.6-intel-3.5/pygame
copying lib/__init__.py -> build/lib.macosx-10.6-intel-3.5/pygame
copying lib/_camera_opencv_highgui.py -> build/lib.macosx-10.6-intel-3.5/pygame
copying lib/_camera_vidcapture.py -> build/lib.macosx-10.6-intel-3.5/pygame
copying lib/_dummybackend.py -> build/lib.macosx-10.6-intel-3.5/pygame
copying lib/_numpysndarray.py -> build/lib.macosx-10.6-intel-3.5/pygame
copying lib/_numpysurfarray.py -> build/lib.macosx-10.6-intel-3.5/pygame
copying lib/camera.py -> build/lib.macosx-10.6-intel-3.5/pygame
copying lib/colordict.py -> build/lib.macosx-10.6-intel-3.5/pygame
copying lib/compat.py -> build/lib.macosx-10.6-intel-3.5/pygame
copying lib/cursors.py -> build/lib.macosx-10.6-intel-3.5/pygame
copying lib/freetype.py -> build/lib.macosx-10.6-intel-3.5/pygame
copying lib/ftfont.py -> build/lib.macosx-10.6-intel-3.5/pygame
copying lib/locals.py -> build/lib.macosx-10.6-intel-3.5/pygame
copying lib/macosx.py -> build/lib.macosx-10.6-intel-3.5/pygame
copying lib/midi.py -> build/lib.macosx-10.6-intel-3.5/pygame
copying lib/pkgdata.py -> build/lib.macosx-10.6-intel-3.5/pygame
copying lib/sndarray.py -> build/lib.macosx-10.6-intel-3.5/pygame
copying lib/sprite.py -> build/lib.macosx-10.6-intel-3.5/pygame
copying lib/surfarray.py -> build/lib.macosx-10.6-intel-3.5/pygame
copying lib/sysfont.py -> build/lib.macosx-10.6-intel-3.5/pygame
copying lib/version.py -> build/lib.macosx-10.6-intel-3.5/pygame
creating build/lib.macosx-10.6-intel-3.5/pygame/gp2x
copying lib/gp2x/__init__.py -> build/lib.macosx-10.6-intel-3.5/pygame/gp2x
copying lib/gp2x/constants.py -> build/lib.macosx-10.6-intel-3.5/pygame/gp2x
copying lib/gp2x/locals.py -> build/lib.macosx-10.6-intel-3.5/pygame/gp2x
creating build/lib.macosx-10.6-intel-3.5/pygame/threads
copying lib/threads/__init__.py -> build/lib.macosx-10.6-intel-3.5/pygame/threads
copying lib/threads/Py25Queue.py -> build/lib.macosx-10.6-intel-3.5/pygame/threads
creating build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/__init__.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/__main__.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/base_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/blit_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/bufferproxy_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/camera_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/cdrom_tags.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/cdrom_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/color_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/compat_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/cursors_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/display_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/draw_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/event_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/fastevent_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/font_tags.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/font_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/freetype_tags.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/freetype_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/ftfont_tags.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/ftfont_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/gfxdraw_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/image__save_gl_surface_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/image_tags.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/image_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/imageext_tags.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/imageext_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/joystick_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/key_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/mask_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/math_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/midi_tags.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/midi_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/mixer_music_tags.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/mixer_music_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/mixer_tags.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/mixer_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/mouse_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/overlay_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/pixelarray_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/pixelcopy_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/rect_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/rwobject_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/scrap_tags.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/scrap_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/sndarray_tags.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/sndarray_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/sprite_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/surface_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/surfarray_tags.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/surfarray_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/surflock_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/sysfont_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/test_test_.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/threads_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/time_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
copying test/transform_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests
creating build/lib.macosx-10.6-intel-3.5/pygame/tests/test_utils
copying test/test_utils/__init__.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/test_utils
copying test/test_utils/arrinter.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/test_utils
copying test/test_utils/async_sub.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/test_utils
copying test/test_utils/buftools.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/test_utils
copying test/test_utils/endian.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/test_utils
copying test/test_utils/png.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/test_utils
copying test/test_utils/run_tests.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/test_utils
copying test/test_utils/test_machinery.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/test_utils
copying test/test_utils/test_runner.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/test_utils
creating build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests
copying test/run_tests__tests/__init__.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests
copying test/run_tests__tests/run_tests__test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests
creating build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/__init__.py -> build/lib.macosx-10.6-intel-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-intel-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-intel-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-intel-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-intel-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-intel-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-intel-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-intel-3.5/pygame/tests/run_tests__tests/all_ok
creating build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/failures1
copying test/run_tests__tests/failures1/__init__.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/failures1
copying test/run_tests__tests/failures1/fake_2_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/failures1
copying test/run_tests__tests/failures1/fake_3_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/failures1
copying test/run_tests__tests/failures1/fake_4_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/failures1
creating build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/incomplete
copying test/run_tests__tests/incomplete/__init__.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/incomplete
copying test/run_tests__tests/incomplete/fake_2_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/incomplete
copying test/run_tests__tests/incomplete/fake_3_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/incomplete
creating build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/infinite_loop
copying test/run_tests__tests/infinite_loop/__init__.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/infinite_loop
copying test/run_tests__tests/infinite_loop/fake_1_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/infinite_loop
copying test/run_tests__tests/infinite_loop/fake_2_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/infinite_loop
creating build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/print_stderr
copying test/run_tests__tests/print_stderr/__init__.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/print_stderr
copying test/run_tests__tests/print_stderr/fake_2_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/print_stderr
copying test/run_tests__tests/print_stderr/fake_3_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/print_stderr
copying test/run_tests__tests/print_stderr/fake_4_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/print_stderr
creating build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/print_stdout
copying test/run_tests__tests/print_stdout/__init__.py -> build/lib.macosx-10.6-intel-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-intel-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-intel-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-intel-3.5/pygame/tests/run_tests__tests/print_stdout
creating build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/incomplete_todo
copying test/run_tests__tests/incomplete_todo/__init__.py -> build/lib.macosx-10.6-intel-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-intel-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-intel-3.5/pygame/tests/run_tests__tests/incomplete_todo
creating build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/exclude
copying test/run_tests__tests/exclude/__init__.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/exclude
copying test/run_tests__tests/exclude/fake_2_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/exclude
copying test/run_tests__tests/exclude/invisible_tag_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/exclude
copying test/run_tests__tests/exclude/magic_tag_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/exclude
creating build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/timeout
copying test/run_tests__tests/timeout/__init__.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/timeout
copying test/run_tests__tests/timeout/fake_2_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/timeout
copying test/run_tests__tests/timeout/sleep_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/timeout
creating build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/__init__.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/fake_2_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/incomplete_todo_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/magic_tag_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/sleep_test.py -> build/lib.macosx-10.6-intel-3.5/pygame/tests/run_tests__tests/everything
creating build/lib.macosx-10.6-intel-3.5/pygame/docs
copying docs/__init__.py -> build/lib.macosx-10.6-intel-3.5/pygame/docs
copying docs/__main__.py -> build/lib.macosx-10.6-intel-3.5/pygame/docs
creating build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/__init__.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/aacircle.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/aliens.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/arraydemo.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/blend_fill.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/blit_blends.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/camera.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/chimp.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/cursors.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/eventlist.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/fastevents.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/fonty.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/freetype_misc.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/glcube.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/headless_no_windows_needed.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/liquid.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/mask.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/midi.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/moveit.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/oldalien.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/overlay.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/pixelarray.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/playmus.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/prevent_display_stretching.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/scaletest.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/scrap_clipboard.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/scroll.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/sound.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/sound_array_demos.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/stars.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/testsprite.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
copying examples/vgrade.py -> build/lib.macosx-10.6-intel-3.5/pygame/examples
running build_ext
building 'pygame.scrap' extension
creating build/temp.macosx-10.6-intel-3.5
creating build/temp.macosx-10.6-intel-3.5/src
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DENABLE_NEWBUF=1 -I/NEED_INC_PATH_FIX -I/Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m -c src/scrap.c -o build/temp.macosx-10.6-intel-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 "/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/lx/smky81v534q9ydghqkjbkqv80000gp/T/pip-build-to90wzsv/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/lx/smky81v534q9ydghqkjbkqv80000gp/T/pip-jhi5wezf-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/lx/smky81v534q9ydghqkjbkqv80000gp/T/pip-build-to90wzsv/pygame/
➜ fun_python $
This helped solved the issue. Use sudo if necessary.
brew install sdl sdl_image sdl_mixer sdl_ttf portmidi;
pip3 install pygame;
pip install pygame
After following the brew install answer from #AKS, it also works with pipenv install pygame

Can't install pygame with pip as there is an error whilst runningvsetup.py bdist_wheel for pygame [duplicate]

This question already has answers here:
pygame installation issue in mac os
(5 answers)
Closed 3 years ago.
I am trying to install pygame for Python 3 on an anaconda install.
I run pip install pygame, and it outputs the following:
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/
Yes, it's huge! I have cut out loads of lines like copying lib/... to fit inside the 30,000 character limit of SE.
I have tried the following:
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
They all gave basically the same error.
I can't work out what is wrong, as this is a brand new install of anaconda.
The lines:
#include "SDL.h"
^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1
are obviously the most important part, which implies a bug in the code. Is there an obvious error here? If it is a Python script, then it shouldn't be run, as it is commented out.
I've googled the error, and other people with a similar error like here needed to run xcode-select --install to solve it.
If I run that, I get this:
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
So that is not my problem.
There is also the important line:
Running setup.py bdist_wheel for pygame ... error
Does anyone have any insights that might help me?
Just run this and you'll be able to work with the latest version of PyGame.
This command installs the missing dependencies that cause your error.
brew install sdl sdl_image sdl_mixer sdl_ttf portmidi
Then you can run pip install pygame and it will work fine.
The problem is in new XCode that shut down some support ( I got similar issue with wxPython ) but I managed to make pygame work (version 1.9.2) so try pip install pygame==1.9.2 since it is by default trying to get 1.9.3
Also the #include "SDL.h" is C++, not python, so it is not a comment, rather it is importing a library SDL :)

Categories

Resources