久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

無(wú)法使用 pip 安裝 pygame,因?yàn)檫\(yùn)行 pygame 的 vset

Can#39;t install pygame with pip as there is an error whilst runningvsetup.py bdist_wheel for pygame(無(wú)法使用 pip 安裝 pygame,因?yàn)檫\(yùn)行 pygame 的 vsetup.py bdist_wheel 時(shí)出錯(cuò))
本文介紹了無(wú)法使用 pip 安裝 pygame,因?yàn)檫\(yùn)行 pygame 的 vsetup.py bdist_wheel 時(shí)出錯(cuò)的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

問(wèn)題描述

我正在嘗試在 anaconda 安裝上安裝 Python 3 的 pygame.

I am trying to install pygame for Python 3 on an anaconda install.

我運(yùn)行pip install pygame,它輸出如下:

Collecting pygame
  Using cached pygame-1.9.3.tar.gz
Building wheels for collected packages: pygame
  Running setup.py bdist_wheel for pygame ... error
  Complete output from command //anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/s0/514rk5j90q90x4s8n48ry7wc0000gn/T/pip-build-2n_0kk3y/pygame/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('
', '
');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('
', '
');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 "http://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('
', '
');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/

是的,它很大!我已經(jīng)刪掉了很多行,例如 copying lib/... 以適應(yīng) SE 的 30,000 個(gè)字符限制.

Yes, it's huge! I have cut out loads of lines like copying lib/... to fit inside the 30,000 character limit of SE.

我嘗試了以下方法:

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

他們都給出了基本相同的錯(cuò)誤.

They all gave basically the same error.

我無(wú)法找出問(wèn)題所在,因?yàn)檫@是全新安裝的 anaconda.

I can't work out what is wrong, as this is a brand new install of anaconda.

線條:

#include "SDL.h"
             ^
    1 error generated.
    error: command '/usr/bin/clang' failed with exit status 1

顯然是最重要的部分,這意味著代碼中存在錯(cuò)誤.這里有明顯的錯(cuò)誤嗎?如果它是 Python 腳本,則不應(yīng)運(yùn)行它,因?yàn)樗驯蛔⑨尩?

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.

我用谷歌搜索了這個(gè)錯(cuò)誤,其他人也有類似的錯(cuò)誤,比如 這里需要運(yùn)行xcode-select --install來(lái)解決.

I've googled the error, and other people with a similar error like here needed to run xcode-select --install to solve it.

如果我運(yùn)行它,我會(huì)得到這個(gè):

If I run that, I get this:

xcode-select: error: command line tools are already installed, use "Software Update" to install updates

所以這不是我的問(wèn)題.

還有重要的一行:

Running setup.py bdist_wheel for pygame ... error

有沒(méi)有人有任何可能對(duì)我有幫助的見解?

Does anyone have any insights that might help me?

推薦答案

只要運(yùn)行這個(gè),你就可以使用最新版本的 PyGame.此命令會(huì)安裝導(dǎo)致錯(cuò)誤的缺失依賴項(xiàng).

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

然后你可以運(yùn)行pip install pygame,它會(huì)正常工作的.

Then you can run pip install pygame and it will work fine.

這篇關(guān)于無(wú)法使用 pip 安裝 pygame,因?yàn)檫\(yùn)行 pygame 的 vsetup.py bdist_wheel 時(shí)出錯(cuò)的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Troubles while parsing with python very large xml file(使用 python 解析非常大的 xml 文件時(shí)出現(xiàn)問(wèn)題)
Find all nodes by attribute in XML using Python 2(使用 Python 2 在 XML 中按屬性查找所有節(jié)點(diǎn))
Python - How to parse xml response and store a elements value in a variable?(Python - 如何解析 xml 響應(yīng)并將元素值存儲(chǔ)在變量中?)
How to get XML tag value in Python(如何在 Python 中獲取 XML 標(biāo)記值)
How to correctly parse utf-8 xml with ElementTree?(如何使用 ElementTree 正確解析 utf-8 xml?)
Parse XML from URL into python object(將 XML 從 URL 解析為 python 對(duì)象)
主站蜘蛛池模板: 国产乱码精品一品二品 | 真人一级毛片 | 色综合天天天天做夜夜夜夜做 | 国产亚洲精品久久久久久豆腐 | 最新黄色在线观看 | 欧美综合网 | 日本一卡精品视频免费 | 99热精品在线 | www.99热 | 香蕉国产在线视频 | 日韩精品一区二区三区中文字幕 | 在线看黄免费 | 伊人网影院 | 免费在线视频精品 | 成人区精品一区二区婷婷 | 成人h动漫亚洲一区二区 | 亚洲精品免费在线 | 国产精品美女久久久久久免费 | 综合一区二区三区 | 日韩成人在线观看 | 欧美国产精品一区二区三区 | 欧美黑人又粗大 | 日韩成人影院 | 亚洲综合视频 | 国产精品毛片无码 | 久久久久久久一区 | 日本 欧美 国产 | 国产精品123区 | 色视频欧美 | 欧美在线一区视频 | 国产人成在线观看 | 亚洲一区免费视频 | 欧美h| av一区二区在线观看 | 福利一区在线观看 | 欧美日韩国产一区二区三区 | 国产一区二区三区久久久久久久久 | 日韩毛片在线视频 | 国产一级成人 | 久久久精品综合 | 欧州一区二区三区 |