Import Errror for python pg module
<p>I am having trouble using the pg module in my code. I've installed it using pip. But when I go to run it I get the following error:</p>

<pre><code>Traceback (most recent call last):
  File "Contract_gen.py", line 2, in &lt;module&gt;
    import pg
  File "C:\Python27\lib\site-packages\pg\__init__.py", line 1, in &lt;module&gt;
    from .core import (
  File "C:\Python27\lib\site-packages\pg\core.py", line 6, in &lt;module&gt; 
    from . import glfw
  File "C:\Python27\lib\site-packages\pg\glfw.py", line 140, in &lt;module&gt;
    raise ImportError("Failed to load GLFW3 shared library.")
ImportError: Failed to load GLFW3 shared library.
</code></pre>

<p>It seems like to require the <code>GLFW3</code> library. Download &amp; install it and the error should be gone. If you use macOS you can get it via <code>brew</code>.</p>

python module pg