Just run this and you’ll be able to work with the latest version of PyGame.
This command installs the missing dependencies that cause your error.
brew install sdl sdl_image sdl_mixer sdl_ttf portmidi
Then you can run pip install pygame
and it will work fine.
More Related Contents:
- How do I install pip on macOS or OS X?
- Using Pip to install packages to Anaconda Environment
- Getting “Permission Denied” when running pip as root on my Mac
- pip installing in global site-packages instead of virtualenv
- PyCharm doesn’t recognise installed module
- How to install 2 Anacondas (Python 2 and 3) on Mac OS
- bash: pip: command not found
- How do I upgrade to Python 3.6 with conda?
- Combining conda environment.yml with pip requirements.txt
- How to install pip for Python 3 on Mac OS X?
- pip is not able to install packages correctly: Permission denied error [duplicate]
- How do I keep track of pip-installed packages in an Anaconda (Conda) environment?
- pip install pygame – SDL.h file not found
- How to install PyGame on Python 3.4?
- Could not install packages due to an EnvironmentError: [Errno 13]
- pip installs packages successfully, but executables not found from command line
- ‘Library not loaded: @rpath/libcudart.7.5.dylib’ TensorFlow Error on Mac
- pip throws TypeError: parse() got an unexpected keyword argument ‘transport_encoding’ when trying to install new packages
- PyCharm doesn’t recognize installed module
- Installing pygraphviz on Windows 10 64-bit, Python 3.6
- How to install PyGame on Python?
- Can’t install PIL after Mac OS X 10.9
- pip installation /usr/local/opt/python/bin/python2.7: bad interpreter: No such file or directory
- How to install two versions of Anaconda (Python 2 and 3) on Mac OS
- “SSL certificate verify failed” using pip to install packages
- Installing Pygame for Mac OS X 10.6.8
- What is the difference between pyenv, virtualenv, anaconda?
- Where is site-packages located in a Conda environment?
- How can I host my own private conda repository?
- Trouble Installing Pygame on Mac OSX