Q:

python virtualenv module not being imported

I have installed markdown using
pip install markdown

in a virutalenv project, running pip freeze shows me its installed.
but I get the following error when trying to use it
import markdown
ImportError: No module named markdown

the app is using google app engine. Adding it to app.yml as
libraries:
- name: webapp2
  version: latest
- name: jinja2
  version: latest

gives me
raise yaml_errors.EventError(e, event_object)
google.appengine.api.yaml_errors.EventError: the library "markdown" is not supported

A:

You can import arbitrary libraries in to appengine, but not through libraries directive in app.yaml.
In addition, you can't run appengine under virtualenv.  
You can use virtualenv/pip/easy_install to install libs and their dependancies, but you then need to link/copy the libraries into your project and manipulate your sys.path as appropriate.

