部署到Elastic Beanstalk时,所有依赖项的安装顺序是什么?对于一部分,我在requirements.txt中拥有所有项目依赖项.这包括PIL.但是因为PIL我需要安装libjpeg和其他库(这是在.ebextensions/myapp.config中)
packages:
yum:
libjpeg-devel: []
freetype-devel: []
zlib-devel: []
... rest of config file
Run Code Online (Sandbox Code Playgroud)
唯一的问题是,如果首先运行pip,我将不得不重新安装Pillow,我不知道该怎么办
python django amazon-web-services python-imaging-library amazon-elastic-beanstalk
基本上我想要的是这个:
>>> a = ["a","a","b","c","c","c","d","e","f"]
>>> b = ["a","b","c","d","e","f"]
>>> #Do something, something like a - b
>>> result = ["a","c","c"]
Run Code Online (Sandbox Code Playgroud)
我想这样做的原因,我正在加入一系列偏好列表,并希望找到哪一个在很多列表中很常见.它们出现在列表a中的次数越多(因为更多列表具有该元素),我就越重视它