I downloaded Python 2.7.10 and I wanted to install pygame. I downloaded the DMG from pygame's website (Version 1.9.1) and installed it. To test if pygame was installed properly, I opened IDLE and entered the command import pygame just for the following error to return:
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/__init__.py", line 95, in <module>
from pygame.base import * ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so, 2): no suitable image found. Did find:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so: no matching architecture in universal wrapper
I'm running OSX Yosemite version 10.10.3, does anyone know how to fix this issue and properly install pygame without any issues>
How to install PyGame on the Mac OS X El Capitan 10.11.1
Open Terminal and run
conda update condaconda create -n py27 pythonsource activate py27conda install binstarconda install anaconda-clientconda install -c https://conda.binstar.org/erik pyobjcconda install -c https://conda.binstar.org/erik pyobjc-coreconda install -c https://conda.binstar.org/erik pyobjc-framework-Cocoaconda install -c https://conda.binstar.org/erik pyobjc-framework-Quartzconda install numpyconda install pyopenglbrew install homebrew/python/pygameThere are some specific instructions to follow after brew is run.
You will also need to create a sitecustomize.py file in /Users/toasteez/anaconda/envs/pygame/lib/python2.7/site-packages
I added the env to my Pycharm Project Interpreter and it seems fine.