Install pyGlfw on Mac OS X El Capitan

Sorry I’m a beginner in MAC and glfw.

I just install pyGlfw using:

$ pip install pyglfw

Just doing import glfw, I obtain the error

Traceback (most recent call last):
File “<pyshell#14>”, line 1, in
import glfw
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/”, line 149, in
raise ImportError(“Failed to load GLFW3 shared library.”)
ImportError: Failed to load GLFW3 shared library.

Thank you for your help,

Hi Giovanni,

This forum is for support of the GLFW API itself, which is in C. The pyglfw bindings themselves are maintained by someone else, however I can’t find a support forum for them.

According to the pyglfw documentation on pypi you need to install the GLFW shared library binary, see the section under Installation. There’s a slightly more up to date version of pyglfw on the bitbucket project home so you might want to try that.

Hope this helps.