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
  [PyGame] Unable to install pygame never_too_old 2 67 Yesterday, 11:17 PM
Last Post: Blue Dog
  Unable to install pygame (but it seems to already be installed) garthE 3 5,394 Jun-28-2025, 03:54 AM
Last Post: Plyth
  Cannot install and use pygame zero garthE 7 7,093 Sep-24-2024, 11:56 AM
Last Post: garthE
  Can't get pygame to install djwilson0495 13 21,104 Dec-07-2020, 01:30 PM
Last Post: djwilson0495
  Error to install pygame skp 1 5,538 Apr-14-2020, 05:17 PM
Last Post: joe_momma
  PIP cannot install Pygame Amaly84 6 18,671 Sep-04-2019, 07:59 PM
Last Post: Amaly84
  pip install pygame choking on SDL dependency sneakyimp 20 22,557 Jan-23-2019, 12:36 PM
Last Post: metulburr
  pip can't install pygame SheeppOSU 1 11,043 Dec-08-2018, 08:20 PM
Last Post: snippsat
  FYI Pygame high cpu usage. Windspar 2 6,579 Dec-10-2017, 01:53 PM
Last Post: metulburr
  How to install Pygame chappie 2 5,056 Dec-06-2017, 10:47 PM
Last Post: chappie

Forum Jump:

User Panel Messages

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