Can't import Flask while using Google App Engine

前端 未结 5 502
闹比i
闹比i 2021-01-01 04:12

I\'m following this guide and trying to develop a Flask app to run on the Google App Engine. I followed the guide to the letter but when I launch the dev app server from the

5条回答
  •  孤城傲影
    2021-01-01 04:26

    Usually, templates come with a requirements.txt. If not, add your dependencies there and then run pip install -t lib -r requirements.txt to force the libraries to be saved in the lib folder.

    Make sure you've added lib to appengine_config.py with vendor.add('lib') if it's not already there.

提交回复
热议问题