Running this line in a Mac terminal fixed it for me:
/usr/local/opt/[email protected]/bin/python3.9 -m pip install --upgrade pip
I had the same issue. I also first tried the pip3 install pygame
which was previously mentioned, before running this line. You may have to do that first. For the individual who said to try
pip install typing
that line of code will simply produce the same error. To fix it, you have to use to the aforementioned command(s).