title: Unable to find render using OpenGL
body: <p>I am using a mac, and am trying to render the environment from open ai's gym</p>
  <pre class="lang-py prettyprint-override"><code>import gym
  env= gym.make('CartPole-v1')
  img = env.render()
  </code></pre>
  <pre><code>ImportError: Can't find framework /System/Library/Frameworks/OpenGL.framework.
  
  During handling of the above exception, another exception occurred:
  
  ImportError: 
      Error occurred while running `from pyglet.gl import *`
      HINT: make sure you have OpenGL install. On Ubuntu, you can run 'apt-get install python-opengl'.
      If you're running on a server, you may need a virtual frame buffer; something like this should work:
      'xvfb-run -s &quot;-screen 0 1400x900x24&quot; python &lt;your_script.py&gt;'
  </code></pre>
  <p>Despite the fact that when I navigate to that directory (Framewords) I can directly see OpenGL.framework</p>
  <p>Has anyone come across this before?</p>