title: How do you use numpy in google app engine (Python)
body: <p>numpy is supported as a library in google app engine according to the official documentation <a href="https://developers.google.com/appengine/docs/python/tools/libraries27" rel="noreferrer">here</a>. I was not able to import it after a few trials, can anyone share the code to use it?</p>
  
  <p>I believe it should be called in app.yaml with:</p>
  
  <pre><code>libraries:
  - name: numpy
    version: "1.6.1"
  </code></pre>
  
  <p>And then be imported in the script somehow. I tried the obvious:</p>
  
  <pre><code>import numpy
  </code></pre>
  
  <p>but it gave me the following error:</p>
  
  <p>ImportError: No module named numpy</p>
  
  <p>Any simple code is appreciated, for example how do you do the <a href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.average.html" rel="noreferrer">"numpy.average"</a> function in a google app engine script?</p>
  
  <pre><code>&gt;&gt;&gt; data = range(1,5)
  &gt;&gt;&gt; data
  [1, 2, 3, 4]
  &gt;&gt;&gt; np.average(data)
  2.5
  </code></pre>