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