Help us understand the problem. What is going on with this article?

Google App Engineに元からはいっていないライブラリを使う方法

More than 5 years have passed since last update.

libs/ ディレクトリを作り、
pip install -t libs ライブラリ名
のようにして、libs以下にライブラリをインストールします。

pip install -t, --target <dir>

Install packages into <dir>. By default this will not replace existing files/folders in <dir>. Use –upgrade to replace existing packages in <dir=> with new versions.

mainのページ以下を追加して、libsへのパスをアプリケーションに追加すると、GAEでライブラリが使えます。

import sys
sys.path.insert(0, 'libs')

FlaskをGAEで使うサンプル:cocodrips/GAE-flask-application

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away