15
16

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

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

Posted at

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

15
16
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
15
16

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?