Python Eggs on Google App Engine

后端 未结 2 791
轻奢々
轻奢々 2021-01-26 17:18

Usually I would use virtualenv and pip for deployment of web applications. With Google App Engine this doesn\'t work, because all import s

2条回答
  •  执念已碎
    2021-01-26 18:12

    It seems manually adding the virtualenv to sys.path solves the problem for me at the moment:

    sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'dev.env/lib/python2.5/site-packages/'))
    

提交回复
热议问题