Setup Python 3.7 for Google App Engine Standard

Create a google cloud project with app engine.

You shall be promoted to selected a Region (and this CANNOT be changed after selection).

NOTE: A reference for latency across region using GCP.

NOTE: If you intend to use some Beta products, I would recommend us-central.

Create a virtualenv for your project.

virtualenv -p python3 envsource env/bin/activate

NOTE: Though the official documentation use virtualenv env, but you might end up with python2 depending what is your default python version. Check python version python --version.

NOTE: I opt for using pyenv with virtualenv instead.

Make a directory for your project.


Edit requirements.txt to specify all the dependencies.


Install the dependencies (for local development).

pip install  -r requirements.txt


from flask import Flaskapp = Flask(__name__)@app.route('/')def hello():  return "Hello"if __name__ == '__main__':'', port=8088, debug=True)  

Run the application.


NOTE: dev_appserver is no longer the prefered way for local development.

Access the web page at

Edit app.yaml.

runtime: python37


gcloud app deploy --project <PROJECT> -v 1

You might be interested of the following:


❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.