Painful experience of using pythonanywhere service

  1. File “”, line 17) from exc ^ SyntaxError: invalid syntax

解決: use the same package and same version of Python that your web app uses to run

  1. could not in import mysqldb from sqlite3 (mysqlclinet pkg is not installed error)
    . virtualenv:

Use a virtualenv to get different versions of flask, django etc from our default system ones. More info here. You need to Reload your web app to activate it; NB - will do nothing if the virtualenv does not exist.

[ Start a console in this virtualenv] ⇦ここから依存ライブラリをインストールする。

3.whitelist of pythonanywhere