error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/
python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/m4/cr1nnzpn0hq7w
sy415vrryhr0000gn/T/pip-install-qdms1gf6/pygame/setup.py'"'"'; __file__='"'"'/private/var/folders/m4/cr1nnz
pn0hq7wsy415vrryhr0000gn/T/pip-install-qdms1gf6/pygame/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', op
en)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"
'"'exec'"'"'))' install --record /private/var/folders/m4/cr1nnzpn0hq7wsy415vrryhr0000gn/T/pip-record-gx3s8g
09/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/
Python.framework/Versions/3.8/include/python3.8/pygame Check the logs for full command output.
My pip and python version is up to date but I can't seem to install pygame, I tried using brew but the same problem occurred, I also downloaded pyglet and there wasn't a problem. I'm new to python so if you could help it would be appreciated. note: I'm using a MacBook Pro running macOS Mojave version 10.14.5