无法在Amazon Linux上安装dm.xmlsec.binding

时间:2017-04-20 04:57:15

标签: python linux amazon-web-services cython

我试图将python-saml安装到最新的Amazon Linux for Elasticbeanstalk(运行Python 2.7的64位Amazon Linux 2016.09 v2.3.3)

当它尝试安装dm.xmlsec.binding时,它失败并带有

Running setup.py (path:/tmp/pip-build-5dg8_B/dm.xmlsec.binding/setup.py) egg_info for package dm.xmlsec.binding
Running command python setup.py egg_info
Complete output from command python setup.py egg_info:
{standard input}: Assembler messages:
{standard input}:26237: Warning: end of file not at end of a line; newline inserted
{standard input}:26953: Error: unknown pseudo-op: `.l'
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Building lxml version 3.7.3.
Building without Cython.
Using build configuration of libxslt 1.1.28
Building against libxml2/libxslt in the following directory: /usr/lib64
Compile failed: command 'gcc' failed with exit status 1

Ubuntu 16.04没有问题

1 个答案:

答案 0 :(得分:0)

升级lxml修复了问题

sudo pip install lxml --upgrade