Python Forum
Trying to install pygame Mac OS x high sierra
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to install pygame Mac OS x high sierra
#1
Hi Guys.

Trying to install pygame on Mac OSX high sierra with no luck...

Here is the message I get. Would love your help.



13 warnings and 2 errors generated.
---
For help with compilation see:
https://www.pygame.org/wiki/MacCompile
To contribute to pygame development see:
https://www.pygame.org/contribute.html
---
error: command '/usr/bin/gcc' failed with exit code 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/giladalon/tmp/.venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/52/fz0j6s5n16qcnnfhr_c36gnw0000gn/T/pip-install-gsdzdcue/pygame/setup.py'"'"'; __file__='"'"'/private/var/folders/52/fz0j6s5n16qcnnfhr_c36gnw0000gn/T/pip-install-gsdzdcue/pygame/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/52/fz0j6s5n16qcnnfhr_c36gnw0000gn/T/pip-record-_u8gkp55/install-record.txt --single-version-externally-managed --compile --install-headers /Users/giladalon/tmp/.venv/include/site/python3.9/pygame Check the logs for full command output.
Reply
#2
python 3.9 was just released. New versions are often not supported yet by some 3rd party libraries.

often that error is a result of trying to install to a python version not yet compatible by pygame. I have not been keeping track of it lately, but the easiest solution is to install python3.8 and the corresponding pygame for that..
Recommended Tutorials:
Reply
#3
Do you have to compile it? Have you tried pip3 install pygame?
metulburr likes this post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to install pygame (but it seems to already be installed) garthE 1 1,586 Apr-15-2025, 05:02 PM
Last Post: jassonadder
  Cannot install and use pygame zero garthE 7 2,911 Sep-24-2024, 11:56 AM
Last Post: garthE
  Can't get pygame to install djwilson0495 13 15,453 Dec-07-2020, 01:30 PM
Last Post: djwilson0495
  Error to install pygame skp 1 4,283 Apr-14-2020, 05:17 PM
Last Post: joe_momma
  PIP cannot install Pygame Amaly84 6 13,706 Sep-04-2019, 07:59 PM
Last Post: Amaly84
  pip install pygame choking on SDL dependency sneakyimp 20 17,335 Jan-23-2019, 12:36 PM
Last Post: metulburr
  pip can't install pygame SheeppOSU 1 10,362 Dec-08-2018, 08:20 PM
Last Post: snippsat
  FYI Pygame high cpu usage. Windspar 2 5,900 Dec-10-2017, 01:53 PM
Last Post: metulburr
  How to install Pygame chappie 2 4,268 Dec-06-2017, 10:47 PM
Last Post: chappie
  How to begin coding for game making [Install pygame on mac] mattkrebs 2 6,187 Apr-02-2017, 10:57 AM
Last Post: machrider

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020