Python Eggs on Google App Engine

后端 未结 2 783
轻奢々
轻奢々 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:04

    If you use easy_install instead of pip you can run it with the --install-dir argument to specify a non-default installation directory.

    0 讨论(0)
  • 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/'))
    
    0 讨论(0)
提交回复
热议问题