python311 can not install pygame
error:
Looking in indexes: https://mirrors.bfsu.edu.cn/pypi/web/simple
Collecting pygame
Using cached https://mirrors.bfsu.edu.cn/pypi/web/packages/9a/50/67767e5586a45e7e7b02e6f0e07853f8fcb81b54c66db6278f1a1344491f/pygame-2.1.2.tar.gz (10.1 MB)
Preparing metadata (setup.py) ... done
Installing collected packages: pygame
DEPRECATION: pygame is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
Running setup.py install for pygame ... error
error: subprocess-exited-with-error
× Running setup.py install for pygame did not run successfully.
│ exit code: 1
╰─> [268 lines of output]
running install
C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\pygame
copying src_py\camera.py -> build\lib.win-amd64-cpython-311\pygame
copying src_py\colordict.py -> build\lib.win-amd64-cpython-311\pygame
copying src_py\cursors.py -> build\lib.win-amd64-cpython-311\pygame
copying src_py\draw_py.py -> build\lib.win-amd64-cpython-311\pygame
copying src_py\fastevent.py -> build\lib.win-amd64-cpython-311\pygame
copying src_py\freetype.py -> build\lib.win-amd64-cpython-311\pygame
copying src_py\ftfont.py -> build\lib.win-amd64-cpython-311\pygame
copying src_py\locals.py -> build\lib.win-amd64-cpython-311\pygame
copying src_py\macosx.py -> build\lib.win-amd64-cpython-311\pygame
copying src_py\midi.py -> build\lib.win-amd64-cpython-311\pygame
copying src_py\pkgdata.py -> build\lib.win-amd64-cpython-311\pygame
copying src_py\sndarray.py -> build\lib.win-amd64-cpython-311\pygame
copying src_py\sprite.py -> build\lib.win-amd64-cpython-311\pygame
copying src_py\surfarray.py -> build\lib.win-amd64-cpython-311\pygame
copying src_py\sysfont.py -> build\lib.win-amd64-cpython-311\pygame
copying src_py\version.py -> build\lib.win-amd64-cpython-311\pygame
copying src_py\_camera_opencv.py -> build\lib.win-amd64-cpython-311\pygame
copying src_py\_camera_vidcapture.py -> build\lib.win-amd64-cpython-311\pygame
copying src_py\__init__.py -> build\lib.win-amd64-cpython-311\pygame
creating build\lib.win-amd64-cpython-311\pygame\threads
copying src_py\threads\__init__.py -> build\lib.win-amd64-cpython-311\pygame\threads
creating build\lib.win-amd64-cpython-311\pygame\_sdl2
copying src_py\_sdl2\__init__.py -> build\lib.win-amd64-cpython-311\pygame\_sdl2
creating build\lib.win-amd64-cpython-311\pygame\tests
copying test\base_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\blit_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\bufferproxy_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\camera_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\color_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\constants_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\controller_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\cursors_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\display_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\docs_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\draw_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\event_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\font_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\freetype_tags.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\freetype_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\ftfont_tags.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\ftfont_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\gfxdraw_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\imageext_tags.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\imageext_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\image_tags.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\image_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\image__save_gl_surface_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\joystick_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\key_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\mask_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\math_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\midi_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\mixer_music_tags.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\mixer_music_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\mixer_tags.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\mixer_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\mouse_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\pixelarray_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\pixelcopy_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\rect_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\rwobject_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\scrap_tags.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\scrap_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\sndarray_tags.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\sndarray_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\sprite_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\surface_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\surfarray_tags.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\surfarray_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\surflock_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\sysfont_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\test_test_.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\threads_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\time_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\touch_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\transform_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\version_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\video_test.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\__init__.py -> build\lib.win-amd64-cpython-311\pygame\tests
copying test\__main__.py -> build\lib.win-amd64-cpython-311\pygame\tests
creating build\lib.win-amd64-cpython-311\pygame\tests\test_utils
copying test\test_utils\arrinter.py -> build\lib.win-amd64-cpython-311\pygame\tests\test_utils
copying test\test_utils\async_sub.py -> build\lib.win-amd64-cpython-311\pygame\tests\test_utils
copying test\test_utils\buftools.py -> build\lib.win-amd64-cpython-311\pygame\tests\test_utils
copying test\test_utils\endian.py -> build\lib.win-amd64-cpython-311\pygame\tests\test_utils
copying test\test_utils\png.py -> build\lib.win-amd64-cpython-311\pygame\tests\test_utils
copying test\test_utils\run_tests.py -> build\lib.win-amd64-cpython-311\pygame\tests\test_utils
copying test\test_utils\test_machinery.py -> build\lib.win-amd64-cpython-311\pygame\tests\test_utils
copying test\test_utils\test_runner.py -> build\lib.win-amd64-cpython-311\pygame\tests\test_utils
copying test\test_utils\__init__.py -> build\lib.win-amd64-cpython-311\pygame\tests\test_utils
creating build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests
copying test\run_tests__tests\run_tests__test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests
copying test\run_tests__tests\__init__.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests
creating build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\all_ok
copying test\run_tests__tests\all_ok\fake_2_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\all_ok
copying test\run_tests__tests\all_ok\fake_3_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\all_ok
copying test\run_tests__tests\all_ok\fake_4_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\all_ok
copying test\run_tests__tests\all_ok\fake_5_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\all_ok
copying test\run_tests__tests\all_ok\fake_6_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\all_ok
copying test\run_tests__tests\all_ok\no_assertions__ret_code_of_1__test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\all_ok
copying test\run_tests__tests\all_ok\zero_tests_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\all_ok
copying test\run_tests__tests\all_ok\__init__.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\all_ok
creating build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\failures1
copying test\run_tests__tests\failures1\fake_2_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\failures1
copying test\run_tests__tests\failures1\fake_3_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\failures1
copying test\run_tests__tests\failures1\fake_4_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\failures1
copying test\run_tests__tests\failures1\__init__.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\failures1
creating build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\incomplete
copying test\run_tests__tests\incomplete\fake_2_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\incomplete
copying test\run_tests__tests\incomplete\fake_3_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\incomplete
copying test\run_tests__tests\incomplete\__init__.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\incomplete
creating build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\infinite_loop
copying test\run_tests__tests\infinite_loop\fake_1_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\infinite_loop
copying test\run_tests__tests\infinite_loop\fake_2_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\infinite_loop
copying test\run_tests__tests\infinite_loop\__init__.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\infinite_loop
creating build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\print_stderr
copying test\run_tests__tests\print_stderr\fake_2_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\print_stderr
copying test\run_tests__tests\print_stderr\fake_3_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\print_stderr
copying test\run_tests__tests\print_stderr\fake_4_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\print_stderr
copying test\run_tests__tests\print_stderr\__init__.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\print_stderr
creating build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\print_stdout
copying test\run_tests__tests\print_stdout\fake_2_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\print_stdout
copying test\run_tests__tests\print_stdout\fake_3_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\print_stdout
copying test\run_tests__tests\print_stdout\fake_4_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\print_stdout
copying test\run_tests__tests\print_stdout\__init__.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\print_stdout
creating build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\incomplete_todo
copying test\run_tests__tests\incomplete_todo\fake_2_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\incomplete_todo
copying test\run_tests__tests\incomplete_todo\fake_3_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\incomplete_todo
copying test\run_tests__tests\incomplete_todo\__init__.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\incomplete_todo
creating build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\exclude
copying test\run_tests__tests\exclude\fake_2_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\exclude
copying test\run_tests__tests\exclude\invisible_tag_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\exclude
copying test\run_tests__tests\exclude\magic_tag_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\exclude
copying test\run_tests__tests\exclude\__init__.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\exclude
creating build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\timeout
copying test\run_tests__tests\timeout\fake_2_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\timeout
copying test\run_tests__tests\timeout\sleep_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\timeout
copying test\run_tests__tests\timeout\__init__.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\timeout
creating build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\everything
copying test\run_tests__tests\everything\fake_2_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\everything
copying test\run_tests__tests\everything\incomplete_todo_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\everything
copying test\run_tests__tests\everything\magic_tag_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\everything
copying test\run_tests__tests\everything\sleep_test.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\everything
copying test\run_tests__tests\everything\__init__.py -> build\lib.win-amd64-cpython-311\pygame\tests\run_tests__tests\everything
creating build\lib.win-amd64-cpython-311\pygame\docs
copying docs\__main__.py -> build\lib.win-amd64-cpython-311\pygame\docs
creating build\lib.win-amd64-cpython-311\pygame\examples
copying examples\aacircle.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\aliens.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\arraydemo.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\audiocapture.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\blend_fill.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\blit_blends.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\camera.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\chimp.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\cursors.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\dropevent.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\eventlist.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\fonty.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\font_viewer.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\freetype_misc.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\glcube.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\headless_no_windows_needed.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\joystick.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\liquid.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\mask.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\midi.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\moveit.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\music_drop_fade.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\pixelarray.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\playmus.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\prevent_display_stretching.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\resizing_new.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\scaletest.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\scrap_clipboard.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\scroll.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\setmodescale.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\sound.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\sound_array_demos.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\sprite_texture.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\stars.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\testsprite.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\textinput.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\vgrade.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\video.py -> build\lib.win-amd64-cpython-311\pygame\examples
copying examples\__init__.py -> build\lib.win-amd64-cpython-311\pygame\examples
creating build\lib.win-amd64-cpython-311\pygame\__pyinstaller
copying src_py\__pyinstaller\hook-pygame.py -> build\lib.win-amd64-cpython-311\pygame\__pyinstaller
copying src_py\__pyinstaller\__init__.py -> build\lib.win-amd64-cpython-311\pygame\__pyinstaller
running build_ext
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Administrator\AppData\Local\Programs\Python\Python311\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /TpC:\Users\ADMINI~1\AppData\Local\Temp\tmpkqfu5udu.cpp /FoC:\Users\ADMINI~1\AppData\Local\Temp\tmpkqfu5udu.obj /GF
tmpkqfu5udu.cpp
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Administrator\AppData\Local\Programs\Python\Python311\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files
(x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /TpC:\Users\ADMINI~1\AppData\Local\Temp\tmpr1shpuo6.cpp /FoC:\Users\ADMINI~1\AppData\Local\Temp\tmpr1shpuo6.obj /Gy
tmpr1shpuo6.cpp
building 'pygame.imageext' extension
creating build\temp.win-amd64-cpython-311
creating build\temp.win-amd64-cpython-311\Release
creating build\temp.win-amd64-cpython-311\Release\src_c
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iprebuilt-x64/SDL2-2.0.18/include -Iprebuilt-x64/SDL2_image-2.0.5/include -Iprebuilt-x64/include -Iprebuilt-x64/include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python311\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcsrc_c/imageext.c /Fobuild\temp.win-amd64-cpython-311\Release\src_c/imageext.obj /GF /Gy
imageext.c
src_c/imageext.c(119): warning C4090: “=”: 不同的“const”限定符
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:prebuilt-x64/SDL2-2.0.18/lib/x64 /LIBPATH:prebuilt-x64/SDL2_image-2.0.5/lib/x64 /LIBPATH:prebuilt-x64/SDL2_image-2.0.5/lib/x64 /LIBPATH:prebuilt-x64/SDL2_image-2.0.5/lib/x64 /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python311\libs /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python311 /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python311\PCbuild\amd64 "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22621.0\\um\x64" SDL2.lib SDL2_image.lib libpng16-16.lib libjpeg-9.lib build\temp.win-amd64-cpython-311\Release\src_c/imageext.obj /OUT:build\lib.win-amd64-cpython-311\pygame\imageext.cp311-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-311\Release\src_c\imageext.cp311-win_amd64.lib
正在创建库 build\temp.win-amd64-cpython-311\Release\src_c\imageext.cp311-win_amd64.lib 和对象 build\temp.win-amd64-cpython-311\Release\src_c\imageext.cp311-win_amd64.exp
正在生成代码
已完成代码的生成
building 'pygame.font' extension
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iprebuilt-x64/SDL2-2.0.18/include -Iprebuilt-x64/SDL2_ttf-2.0.15/include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python311\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows
Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcsrc_c/font.c /Fobuild\temp.win-amd64-cpython-311\Release\src_c/font.obj /GF /Gy
font.c
src_c/font.c(694): warning C4047: “初始化”:“int **”与“TTF_Font *”的间接级别不同
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:prebuilt-x64/SDL2-2.0.18/lib/x64 /LIBPATH:prebuilt-x64/SDL2_ttf-2.0.15/lib/x64 /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python311\libs /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python311 /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python311\PCbuild\amd64 "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22621.0\\um\x64" SDL2.lib SDL2_ttf.lib build\temp.win-amd64-cpython-311\Release\src_c/font.obj /OUT:build\lib.win-amd64-cpython-311\pygame\font.cp311-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-311\Release\src_c\font.cp311-win_amd64.lib
正在创建库 build\temp.win-amd64-cpython-311\Release\src_c\font.cp311-win_amd64.lib 和对象 build\temp.win-amd64-cpython-311\Release\src_c\font.cp311-win_amd64.exp
正在生成代码
已完成代码的生成
building 'pygame.mixer' extension
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iprebuilt-x64/SDL2-2.0.18/include -Iprebuilt-x64/SDL2_mixer-2.0.4/include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python311\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcsrc_c/mixer.c /Fobuild\temp.win-amd64-cpython-311\Release\src_c/mixer.obj /GF /Gy
mixer.c
src_c/mixer.c(303): warning C4244: “函数”: 从“intptr_t”转换到“int”,可能丢失数据
src_c/mixer.c(641): warning C4244: “函数”: 从“intptr_t”转换到“int”,可能丢失数据
src_c/mixer.c(652): warning C4244: “函数”: 从“intptr_t”转换到“int”,可能丢失数据
src_c/mixer.c(666): warning C4244: “函数”: 从“intptr_t”转换到“int”,可能丢失数据
src_c/mixer.c(677): warning C4244: “函数”: 从“intptr_t”转换到“int”,可能丢失数据
src_c/mixer.c(1028): warning C4244: “函数”: 从“intptr_t”转换到“int”,可能丢失数据
src_c/mixer.c(1055): warning C4244: “函数”: 从“intptr_t”转换到“int”,可能丢失数据
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:prebuilt-x64/SDL2-2.0.18/lib/x64 /LIBPATH:prebuilt-x64/SDL2_mixer-2.0.4/lib/x64 /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python311\libs /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python311 /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python311\PCbuild\amd64 "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22621.0\\um\x64" SDL2.lib SDL2_mixer.lib build\temp.win-amd64-cpython-311\Release\src_c/mixer.obj /OUT:build\lib.win-amd64-cpython-311\pygame\mixer.cp311-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-311\Release\src_c\mixer.cp311-win_amd64.lib
正在创建库 build\temp.win-amd64-cpython-311\Release\src_c\mixer.cp311-win_amd64.lib 和对象 build\temp.win-amd64-cpython-311\Release\src_c\mixer.cp311-win_amd64.exp
正在生成代码
已完成代码的生成
building 'pygame.mixer_music' extension
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iprebuilt-x64/SDL2-2.0.18/include -Iprebuilt-x64/SDL2_mixer-2.0.4/include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python311\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcsrc_c/music.c /Fobuild\temp.win-amd64-cpython-311\Release\src_c/music.obj /GF /Gy
music.c
src_c/music.c(305): warning C4090: “=”: 不同的“const”限定符
src_c/music.c(377): warning C4133: “return”: 从“PyObject *”到“Mix_Music *”的类型不兼容
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:prebuilt-x64/SDL2-2.0.18/lib/x64 /LIBPATH:prebuilt-x64/SDL2_mixer-2.0.4/lib/x64 /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python311\libs /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python311 /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python311\PCbuild\amd64 "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22621.0\\um\x64" SDL2.lib SDL2_mixer.lib build\temp.win-amd64-cpython-311\Release\src_c/music.obj /OUT:build\lib.win-amd64-cpython-311\pygame\mixer_music.cp311-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-311\Release\src_c\mixer_music.cp311-win_amd64.lib
正在创建库 build\temp.win-amd64-cpython-311\Release\src_c\mixer_music.cp311-win_amd64.lib 和对象 build\temp.win-amd64-cpython-311\Release\src_c\mixer_music.cp311-win_amd64.exp
正在生成代码
已完成代码的生成
building 'pygame.scrap' extension
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iprebuilt-x64/SDL2-2.0.18/include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python311\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcsrc_c/scrap.c /Fobuild\temp.win-amd64-cpython-311\Release\src_c/scrap.obj /GF /Gy
scrap.c
C:\Users\Administrator\AppData\Local\Temp\pip-install-05pe0uep\pygame_b5e15acd7182461882a5dc2f03bf99ea\src_c\scrap_win.c(85): warning C4267: “=”: 从“size_t”转换到“int”,可能丢失数据
C:\Users\Administrator\AppData\Local\Temp\pip-install-05pe0uep\pygame_b5e15acd7182461882a5dc2f03bf99ea\src_c\scrap_win.c(97): warning C4267: “=”: 从“size_t”转换到“int”,可能丢失数据
C:\Users\Administrator\AppData\Local\Temp\pip-install-05pe0uep\pygame_b5e15acd7182461882a5dc2f03bf99ea\src_c\scrap_win.c(279): warning C4244: “=”: 从“SIZE_T”转换到“unsigned long”,可能丢失数据
src_c/scrap.c(294): warning C4244: “函数”: 从“Py_ssize_t”转换到“int”,可能丢失数据
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:prebuilt-x64/SDL2-2.0.18/lib/x64 /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python311\libs /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python311 /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python311\PCbuild\amd64 "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22621.0\\um\x64" SDL2.lib user32.lib gdi32.lib build\temp.win-amd64-cpython-311\Release\src_c/scrap.obj /OUT:build\lib.win-amd64-cpython-311\pygame\scrap.cp311-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-311\Release\src_c\scrap.cp311-win_amd64.lib
正在创建库 build\temp.win-amd64-cpython-311\Release\src_c\scrap.cp311-win_amd64.lib 和对象 build\temp.win-amd64-cpython-311\Release\src_c\scrap.cp311-win_amd64.exp
正在生成代码
已完成代码的生成
building 'pygame.pypm' extension
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iprebuilt-x64/SDL2-2.0.18/include -Iprebuilt-x64/include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python311\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows
Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcsrc_c/pypm.c /Fobuild\temp.win-amd64-cpython-311\Release\src_c/pypm.obj /GF /Gy
pypm.c
src_c/pypm.c(209): fatal error C1083: 无法打开包括文件: “longintrepr.h”: No such file or directory
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.33.31629\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
---
For help with compilation see:
https://www.pygame.org/wiki/CompileWindows
To contribute to pygame development see:
https://www.pygame.org/contribute.html
---
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> pygame
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.