According to the getting started doc and the built-in third-party libraries. You should be able to add flask to your project using libraries in your app.yaml.
Although Flask is bundled into the runtime, and could be used simply by adding in the app.yaml file's libraries: directive, this tutorial puts a copy of the library in your the app's directory, which demonstrates how you would include an unbundled third-party library so that your app can use it.
app.yaml
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /.*
script: main.app
libraries:
- name: flask
version: "latest"
main.py
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
However, I keep getting:
ImportError: No module named flask
Has anyone been able to get this to work? Is there something I'm missing? I'm using the Cloud SDK for local development on Linux.
gcloud components install app-engine-python
does the module not found error go away? (assuming you haven't mapped a local lib folder) – BrettJ