我想在 beantalk 上部署一个 Python Flask 应用程序。
应用程序依赖于外部包(例如 geopy
)和内部包(例如 adam_geography
)。
Create a requirements.txt file and place it in the top-level directory of your source bundle.
这可能会获取 geopy
及其依赖项,但不会获取 adam_geography
,它可从我的 VPC 内的自定义存储库中获得。
如何在 Beanstalk 应用程序中指定/上传私有(private)的内部 Python 包依赖项?
最佳答案
1) 拷贝内部Python包到服务器
2) 使用 Pip 的“可编辑安装”功能安装私有(private)包:
pip install -e path/to/SomeProject
http://pip.readthedocs.org/en/latest/reference/pip_install.html#editable-installs
关于AWS Elastic Beanstalk 中的 Python : Private package dependencies,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25367732/