python - AWS Elastic Beanstalk Django - 部署到 EB 时首先发生什么,pip install -r requirements.txt 或配置文件中的命令

标签 python django amazon-web-services python-imaging-library amazon-elastic-beanstalk

部署到 Elastic Beanstalk 时,所有依赖项的安装顺序是什么?一方面,我的所有项目依赖项都在 requirements.txt 中。这包括 PIL。但是对于 PIL,我需要安装 libjpeg 和其他库(在 .ebextensions/myapp.config 中

packages:
  yum:
    libjpeg-devel: []
    freetype-devel: []
    zlib-devel: []

... rest of config file

唯一的问题是,如果先运行 pip,我将不得不重新安装 Pillow,我不知道该怎么做

最佳答案

Documentation提到首先处理包部分。

The order in which these are processed are as follows:

  1. Packages

  2. Files

  3. Commands

  4. Services

  5. Container Commands

关于python - AWS Elastic Beanstalk Django - 部署到 EB 时首先发生什么,pip install -r requirements.txt 或配置文件中的命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21275395/

相关文章:

amazon-web-services - 如何使 ECR 存储库公开?

amazon-web-services - ETL : Flatten a nested array in an AWS glue job

python - 无法在python中导入beautifulsoup

python - “DataFrame”对象没有属性 'isna'

python - 如何确保调试配置中没有 pdb 调用?

python - Django : How to handle css/js specific to a template tag?

java - 在 AWS 上使用 Kubernetes 创建并运行 docker 容器集群

python - 在序列中进行所有双向比较的最 Pythonic 方法是什么?

python - 如何返回指向ctypes中结构的指针?

django - 无法在Elasticsearch中搜索 '#'