user3058197 user3058197 - 4 months ago 11x
Python Question

Numpy for app engine -- "No module named numpy"

I have numpy installed, but I am seeing this error in my dev_appserver:

import numpy
ImportError: No module named numpy

But when I check if numpy works from the Terminal, it does:

$ python -c "import numpy; print numpy.get_include()"

Any ideas? Thanks.


Numpy is not a builtin python module and therefore your appengine application doesn't know about it, even though it appears to be installed on your machine locally.

Luckily, google added numpy support for appengine. You can include numpy in your appengine application by including this in your app.yaml file

- name: numpy
  version: "1.6.1"

See for more info

As you can read there, numpy is supported, but only version 1.6.1