我试图运行具有烧瓶应用pandas
的依赖。 无需安装的python-devel的,大熊猫无法安装。 所以,首先我需要根据这个线索安装gcc-C ++和Python devel的: 大熊猫在“海湾合作委员会”未能建立在AWS弹性魔豆
现在,我的.elasticbeanstalk/config.yml
的样子:
branch-defaults:
default:
environment: flask-env
group_suffix: null
global:
application_name: flask-sample-app
branch: null
default_ec2_keyname: flask-sample-app
default_platform: Python 3.4
default_region: eu-west-1
include_git_submodules: true
instance_profile: null
platform_name: null
platform_version: null
profile: null
repository: null
sc: null
workspace_type: Application
packages:
yum:
gcc-c++: []
python-devel: []
但成功后eb deploy
命令,我通过连接到它eb ssh
,并认为它未安装。 我config.yml是否正确?
Pandas and NumPy seem to give the most trouble whatever way you go to deploy something. I haven't used elastic-beanstalk myself but have done it direct on servers and in docker.
Can see one difference with what you have and what worked for me. I think you need both gcc and g++ as per this
So perhaps add a line before those last lines of yours:
packages:
yum:
gcc: []
gcc-c++: []
python-devel: []
Am just translating accross what worked in another area.
当我创建了一个YAML文件.ebextensions
而不是.elasticbeanstalk
,它的工作。 我只是把YAML文件错误的目录下。
.elasticbeanstalk / pandas.yml:
packages:
yum:
gcc-c++: []
python3?-devel.x*: []
我得到了错误,同时要安装python-devel: []
命令失败的实例。 返回代码:1个输出:百胜不具备的python-devel的可用于安装
所以,正确的devel包的名字,在我的情况,要么是“python27-devel.x86_64”或“python35-devel.x86_64”
https://forums.aws.amazon.com/thread.jspa?threadID=233268
如何在Red Hat 7安装python3-devel的