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
  Can't get pygame to install djwilson0495 13 10,227 Dec-07-2020, 01:30 PM
Last Post: djwilson0495
  Error to install pygame skp 1 3,485 Apr-14-2020, 05:17 PM
Last Post: joe_momma
  PIP cannot install Pygame Amaly84 6 9,861 Sep-04-2019, 07:59 PM
Last Post: Amaly84
  pip install pygame choking on SDL dependency sneakyimp 20 12,820 Jan-23-2019, 12:36 PM
Last Post: metulburr
  pip can't install pygame SheeppOSU 1 9,460 Dec-08-2018, 08:20 PM
Last Post: snippsat
  FYI Pygame high cpu usage. Windspar 2 4,900 Dec-10-2017, 01:53 PM
Last Post: metulburr
  How to install Pygame chappie 2 3,425 Dec-06-2017, 10:47 PM
Last Post: chappie
  How to begin coding for game making [Install pygame on mac] mattkrebs 2 4,950 Apr-02-2017, 10:57 AM
Last Post: machrider
  [split] permission error on pygame install pyteach 7 8,203 Jan-23-2017, 11:00 PM
Last Post: pyteach

Forum Jump:

User Panel Messages

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