Как справиться с отсутствием модуля с именем pygame при установленном pygame? - PullRequest
0 голосов
/ 07 августа 2020
• 1000 1069 * -m pip install --user pygame "и говорит:" Требование уже выполнено: pygame в ./Library/Python/2.7/lib/python/site-packages (1.9.6) ".

Теперь он говорит python 2.7, но когда я go и запускаю «pip install pygame» предположительно для python3 .8, он выдает ошибку:

Запуск setup.py install для pygame ... error ОШИБКА: ошибка команды со статусом выхода 1: команда: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u - c 'import sys, setuptools , токенизировать; sys.argv [0] = '"'" '/private/var/folders/g9/77451rtd0vj7grc2_lz66tc80000gn/T/pip-install-2uujwl1k/pygame/setup.py' "'"'; файл = '"'" '/ private / var / folder / g9 / 77451rtd0vj7grc2_lz66tc80000gn / T / pip-install-2uujwl1k / pygame / setup.py' "'"'; f = getattr (tokenize, ' "'"' open '"'" ', open) ( файл ); code = f.read (). replace (' "'"' \ r \ n '"'" ',' " '"' \ n '"' "'); f.close (); exe c (компиляция (код, файл ,'" '"' exe c '"' "') ) 'install --record /private/var/folders/g9/77451rtd0vj7grc2_lz66tc80000gn/T/pip-record-ceom_msx/install-record.txt --single-version-external-managed --compile --install-headers / Library / Frameworks / Python .framework / Versions / 3.8 / include / python3 .8 / pygame cwd: / private / var / folder / g9 / 77451rtd0vj7grc2_lz66tc80000gn / T / pip-install-2uujwl1k / pygame / Полный вывод (213 строк) : run install запуск сборки run build_py создание сборки создание build / lib.macosx-10.9-x86_64-3.8 создание build / lib.macosx-10.9-x86_64-3.8 / pygame копирование src_py / surfarray.py -> build / lib.macosx-10.9 -x86_64-3.8 / pygame копирование src_py / sysfont.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame копирование src_py / _camera_vidca pture.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame, копирование src_py / sndarray.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame, копирование src_py / version.py -> build / lib .macosx-10.9-x86_64-3.8 / pygame, копирование src_py / compat.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame, копирование src_py / draw_py.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame copying src_py / colordict.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame copying src_py / ftfont.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame copying src_py / midi.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame, копирование src_py / cursors.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame, копирование src_py / init .py -> build / lib.macosx-10.9-x86_64-3.8 / pygame, копирование src_py / _numpysndarray.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame, копирование src_py / sprite.py -> build / lib.macosx-10.9- x86_64-3.8 / pygame, копирование src_py / macosx.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame, копирование src_py / _numpysurfarray.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame copying src_py / camera.py -> bui ld / lib.macosx-10.9-x86_64-3.8 / pygame copying src_py / freetype.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame copying src_py / _camera_opencv_high gui .py -> build / lib.macosx -10.9-x86_64-3.8 / pygame копирование src_py / pkgdata.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame копирование src_py / locals.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame копирование src_py / dummybackend.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame создание build / lib.macosx-10.9-x86_64-3.8 / pygame / thread копирование src_py / thread / Py25Queue.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / themes, копирование src_py / thread / init .py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / threads создание build / lib .macosx-10.9-x86_64-3.8 / pygame / tests копирование test / base_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests копирование test / font_test.py -> build / lib.macosx-10.9 -x86_64-3.8 / pygame / tests копирование test / Mixer_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests копирование test / rwobject_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pyga me / tests копирование test / pixelcopy_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests копирование test / overlay_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests копирование test / scrap_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests копирование test / touch_tags.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests копирование test / imageext_tags .py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests, копируя test / pixelarray_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests, копируя test / draw_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests, копируя test / transform_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests, копирует test / blit_test.py -> build / lib. macosx-10.9-x86_64-3.8 / pygame / tests copying test / bufferproxy_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests copying test / surfarray_test.py -> build / lib.macosx-10.9- x86_64-3.8 / pygame / tests copying test / mouse_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests copying test / surfarray_tags.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests, копируя test / event_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests, копирует test / imageext_test.py -> build / lib.macosx-10.9-x86_64-3. 8 / pygame / tests копирует test / sprite_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests копирует test / touch_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / копирование тестов test / gfxdraw_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests copying test / rect_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests copying test / scrap_tags.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests copying test / init .py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests copying test / overlay_tags.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests copying test / color_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests copying test / camera_test. py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests, копирование test / surflock_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests, копирование test / key_test.py -> build /lib.macosx-10.9-x86_64-3.8/pygame/tests копирование test / sysfont_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests копирование test / font_tags.py -> build / lib.macosx -10.9-x86_64-3 .8 / pygame / tests копирование test / Mixer_tags.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests копирование test / constants_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests copying test / mixer_music_tags.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests copying test / sndarray_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests copying test /image_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests copying test / version_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests copying test / freetype_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests copying test / joystick_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests copying test / midi_tags.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests copying test / ftfont_tags.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests copying test / image__save_gl_surface_test.py -> build / lib.macosx- 10.9-x86_64-3.8 / pygame / tests копирование test / cdrom_tags.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests копирование test / cursors_test.py -> bu ild / lib.macosx-10.9-x86_64-3.8 / pygame / tests, копирование test / fastevent_tags.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests, копирование test / display_test.py -> build / lib. macosx-10.9-x86_64-3.8 / pygame / tests copying test / fastevent_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests copying test / compat_test.py -> build / lib.macosx-10.9- x86_64-3.8 / pygame / tests копирование test / ftfont_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests copying test / cdrom_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests копирование test / mask_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests copying test / midi_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests copying test / freetype_tags.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests copying test / math_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests copying test / time_test. py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests, копируя test / image_tags.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests, копируя test / threads_test. py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests copying test / main .py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests copying test / Mixer_music_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests копирование test / sndarray_tags.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests копирование test / test_test .py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests копирование test / surface_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests создание build / lib.macosx-10.9 -x86_64-3.8 / pygame / tests / test_utils копирование test / test_utils / run_tests.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / test_utils копирование test / test_utils / endian.py -> build / lib .macosx-10.9-x86_64-3.8 / pygame / tests / test_utils копирование test / test_utils / test_machinery.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / test_utils копирование test / test_utils / init .py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / test_utils копирование test / test_utils / png.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / Tes t_utils копирует test / test_utils / test_runner.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / test_utils копирует test / test_utils / arrinter.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / test_utils копирует test / test_utils / buftools.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / test_utils копирует test / test_utils / async_sub.py -> build / lib.macosx-10.9- x86_64-3.8 / pygame / tests / test_utils создание сборки / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests копирование test / run_tests__tests / run_tests__test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests копирование test / run_tests__tests / init .py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests создание build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / all_ok копирование test / run_tests__tests / all_ok / fake_3_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / all_ok копирование test / run_tests__tests / all_okpy / fake_2> сборка / lib.macosx-10.9-x86_64-3.8 / pygame / te sts / run_tests__tests / all_ok копирование test / run_tests__tests / all_ok / init .py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / all_ok копирование test / run_tests__tests / all4_ok / fake .py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / all_ok копирование test / run_tests__tests / all_ok / fake_5_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / all_ok копирование тест / run_tests__tests / all_ok / no_assertions__ret_code_of_1__test.py -> сборка / lib.macosx-10,9-x86_64-3.8 / Pygame / тесты / run_tests__tests / all_ok копирование тест / run_tests__tests / all_ok / zero_tests_test.py -> сборка / Lib .macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / all_ok копирование test / run_tests__tests / all_ok / fake_6_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / all_ok создание сборки / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / failures1 копирование test / run_tests__tests / failures1 / fake_3_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_ tests__tests / failures1 копирование test / run_tests__tests / failures1 / fake_2_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / failures1 копирование test / run_tests__tests / failures1 / init .py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / failures1 копирование test / run_tests__tests / failures1 / fake_4_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / failures1 создание сборки / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / неполное копирование test / run_tests__tests / incomplete / fake_3_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / неполное копирование test / run_tests__tests / incomplete / fake_2_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / неполное копирование test / run_tests__tests / incomplete / init . -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / incomplete create build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / infinite_loop копирование test / run_tests__tests / infinite_loop / fake_2_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / infinite_loop копирование test / run_tests__tests / infinite_loop / fake_1_test.py -> build / 10.macos -x86_64-3.8 / pygame / tests / run_tests__tests / infinite_loop копирование test / run_tests__tests / infinite_loop / init .py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / infinite_loop create build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / print_stderr копирование test / run_tests__tests / print_stderr / fake_3_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_ print_stderrtests копирование test / run_tests__tests / print_stderr / fake_2_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / print_stderr копирование test / run_tests__tests / print_stderr / init .py -> build /lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/print_stderr копирование test / run_tests__tests / print_stderr / fake_4_test.py -> build / lib.macosx -10.9-x86_64-3.8 / pygame / tests / run_tests__tests / print_stderr создание сборки / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / print_stdout копирование test / run_tests__tests / print_stdout / fake_3_test.py -> macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / print_stdout копирование test / run_tests__tests / print_stdout / fake_2_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / run_tests_tests / run_tests__tests / print_std_std /print_stdout/init.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / print_stdout копирование test / run_tests__tests / print_stdout / fake_4_test.py -> build / lib.macosx -10.9-x86_64-3.8 / pygame / tests / run_tests__tests / print_stdout создание сборки / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / incomplete_todo копирование test / run_tests__tests / incomplete_todo / fake_3_test.py. macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / incomplete_todo копирование test / run_tests__tests / incomplete_todo / fake_2_test.py -> build / l ib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / incomplete_todo копирование test / run_tests__tests / incomplete_todo / init .py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / incomplete_todo создание сборки / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / exclude copying test / run_tests__tests / exclude / magic_tag_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame tests / run_tests__tests / exclude копирование test / run_tests__tests / exclude / fake_2_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / exclude копирование test / run_tests__tests / exclude / init .py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / exclude копирование test / run_tests__tests / exclude / invisible_tag_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / exclude создание сборки / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / timeout copying test / run_tests__tests / timeout / sleep_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / te sts / run_tests__tests / timeout копирование test / run_tests__tests / timeout / fake_2_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / timeout copying test / run_tests__tests / timeout / init .py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / timeout create build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / everything copying test / run_tests__tests / everything / sleep_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / все копирует test / run_tests__tests / everything / magic_tag_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / все копирует test / run_tests__tests / everything / fake_2_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / все, копируя test / run_tests__tests / all / incomplete_todo_test.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / tests / run_tests__tests / все копирует test / run_tests__tests / everything / init .py -> build / lib.macosx-10. 9-x86_64-3.8 / pygame / tests / run_tests__tests / все, что создает build / lib.macosx-10.9-x86_64-3.8 / pygame / docs copying docs / init .py -> build / lib.macosx-10.9 -x86_64-3.8 / pygame / docs копирование документов / main .py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / docs создание build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование примеров / playmus.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование examples / mask.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование examples / sound.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование examples / overlay.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование examples / aacircle. py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование examples / chimp.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование examples / liquid.py -> build /lib.macosx-10.9-x86_64-3.8/pygame/examples копирование примеров / audiocapture.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование примеров / sound_array_demos .py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование examples / midi.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование examples / scroll.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование примеров / cursors.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование примеров / moveit.py -> build / lib. macosx-10.9-x86_64-3.8 / pygame / examples копирование примеров / init .py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование examples / blit_blends.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование примеров / testsprite.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование примеров / textinput.py -> build / lib.macosx- 10.9-x86_64-3.8 / pygame / examples копирование примеров / vgrade.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование примеров / arraydemo.py -> build / lib.macosx-10.9-x86_64- 3.8 / pygame / examples копирование examples / stars.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование examples / camera.py -> build / lib.macosx-10.9- x86_64-3.8 / pygame / examples копирование примеров / blend_fill.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование примеров / fonty.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование примеров / headless_no_windows_needed.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование примеров / fastevents.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / копирование примеров examples / prevent_display_stretching.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование examples / glcube.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование examples / aliens. py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование примеров / freetype_mis c .py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование примеров / scaletest.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование examples / video.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование примеров / eventlist.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование примеров / scrap_clipboard.py -> b uild / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование examples / oldalien.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples копирование examples / pixelarray.py -> build / lib. macosx-10.9-x86_64-3.8 / pygame / examples копирование примеров / dropevent.py -> build / lib.macosx-10.9-x86_64-3.8 / pygame / examples запуск build_ext создание расширения pygame.gfxdraw создание build / temp.macosx- 10.9-x86_64-3.8 создание build / temp.macosx-10.9-x86_64-3.8 / src_c создание build / temp.macosx-10.9-x86_64-3.8 / src_c / SDL_gfx g cc -Wno-unused-result -Wsign-compare - Wunreachable-code -fno-common -dynami c -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -Ddarwin -D_THREAD_SAFE -DENABLE_NEWBUF = 1 -I / usr / X11R6 / include -I / usr / local / include / SDL -I / Library / Frameworks / Python .framework / Versions / 3.8 / include / python3 .8 - c src_c / gfxdraw. c -o build / temp.macosx-10.9-x86_64- 3.8 / src_c / gfxdraw.o xcrun: ошибка: неверный активный путь разработчика (/ Library / Developer / CommandLineTools), отсутствует xcrun по адресу: / Library / Developer / CommandLineTools / usr / bin / xcrun --- Для получения помощи по компиляции см .: https://www.pygame.org/wiki/MacCompile Чтобы внести свой вклад в разработку pygame, см .: https://www.pygame.org/contribute.html --- ошибка : команда 'g cc' завершилась неудачно со статусом выхода 1 ------------------------------------- --- ОШИБКА: ошибка команды со статусом выхода 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u - c 'import sys, setuptools, tokenize; sys.argv [0] = '"'" '/private/var/folders/g9/77451rtd0vj7grc2_lz66tc80000gn/T/pip-install-2uujwl1k/pygame/setup.py' "'"'; файл = '"'" '/ private / var / folder / g9 / 77451rtd0vj7grc2_lz66tc80000gn / T / pip-install-2uujwl1k / pygame / setup.py' "'"'; f = getattr (tokenize, ' "'"' open '"'" ', open) ( файл ); code = f.read (). replace (' "'"' \ r \ n '"'" ',' " '"' \ n '"' "'); f.close (); exe c (компиляция (код, файл ,'" '"' exe c '"' "') ) 'install --record /private/var/folders/g9/77451rtd0vj7grc2_lz66tc80000gn/T/pip-record-ceom_msx/install-record.txt --single-version-external-managed --compile --install-headers / Library / Frameworks / Python .framework / Versions / 3.8 / include / python3 .8 / pygame Проверьте журналы на предмет полного вывода команд.

Любая помощь?

1 Ответ

0 голосов
/ 07 августа 2020

Ваш Pygame в настоящее время загружен в версию python, отличную от той, которую вы используете. Вам нужно будет перейти к текущей версии python с вашего терминала, а затем установить ее. Следующая ссылка может помочь вам перейти к вашей текущей python версии Как переключить версии Python в Терминале? .

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...