【发布时间】:2016-03-19 03:10:00
【问题描述】:
我正在部署并使用弹性 beantalk。当我做 eb create 时,我得到你的 requirements.txt 是无效的,当我仔细观察时,我得到了两个错误
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
error: command 'gcc' failed with exit status 1
我不知道我还能做什么,我试过了
卸载枕头
然后sudo apt-get install libjpeg-dev
安装pillow 返回
和pip install lxml
我试过了
sudo apt-get install libxml2-dev libxslt1-dev python-dev
和
apt-get install libxml2-dev libxslt1-dev python-dev
我只是想部署我所有的东西,但是这个枕头东西抓住了我的脚踝,你能帮帮我吗
我这里有什么需要吗?
packages:
yum:
git: []
postgresql93-devel: []
libjpeg-turbo-devel: []
libpng-devel: []
freetype-devel: []
container_commands:
01_migrate:
command: "source /opt/python/run/venv/bin/activate && python ebagu/manage.py migrate --noinput"
leader_only: true
02_createsu:
command: "source /opt/python/run/venv/bin/activate && python ebagu/manage.py createsu"
leader_only: true
03_collectstatic:
command: "source /opt/python/run/venv/bin/activate && python ebagu/manage.py collectstatic --noinput"
04_uninstall_pil:
command: "source /opt/python/run/venv/bin/activate && yes | pip uninstall Pillow"
05_reinstall_pil:
command: "source /opt/python/run/venv/bin/activate && yes | pip install Pillow --no-cache-dir"
option_settings:
"aws:elasticbeanstalk:application:environment":
DJANGO_SETTINGS_MODULE: "app.settings"
"PYTHONPATH": "/opt/python/current/app/app:$PYTHONPATH"
"aws:elasticbeanstalk:container:python":
WSGIPath: app/app/wsgi.py
NumProcesses: 3
NumThreads: 20
"aws:elasticbeanstalk:container:python:staticfiles":
"/static/": "www/static/"
【问题讨论】:
-
安装
libxml2-dev为我解决了这个错误。
标签: python django amazon-web-services gcc pillow