0

I'm trying to download pygame on pycharm through terminal because the usual method doesn't work, I got these 3 error messages (I have python 3.11 and I've update pip3, setup and wheel and I'm using MacOS):

Building wheels for collected packages: pygame Building wheel for pygame (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [313 lines of output] running bdist_wheel running build running build_py creating build


error: command '/usr/bin/clang' failed with exit code 1 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: 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 error: subprocess-exited-with-error

× Running setup.py install for pygame did not run successfully. │ exit code: 1 ╰─> [315 lines of output] running install


error: command '/usr/bin/clang' failed with exit code 1 [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.

I updated the pip3 packages but couldn't find how to fix any of the other problems.

Nazifa
  • 1

0 Answers0