【问题标题】:unable to install cairosvg on centos 6无法在 centos 6 上安装 cairosvg
【发布时间】:2016-11-27 00:17:01
【问题描述】:

在 Centos 上执行 sudo pip install cairosvg 时 出现以下错误

  self.run_setup(setup_script, setup_base, args)
  File "/usr/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 949, in run_setup
  raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: command 'gcc' failed with exit status 1

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-WJIHyJ/cairocffi/

【问题讨论】:

  • 真正的错误没有显示在您的“错误输出”中。 ....大概:No package 'libffi' found

标签: python svg centos cairo


【解决方案1】:

CentOS 6.8 - 64

# yum install libffi-devel.x86_64

# pip install cairosvg
.
.
Installing collected packages: pycparser, cffi, cairocffi, cairosvg
  Running setup.py install for pycparser
  Running setup.py install for cffi
  Running setup.py install for cairocffi
  Running setup.py install for cairosvg
Successfully installed cairocffi-0.7.2 cairosvg-1.0.22 cffi-1.7.0 pycparser-2.14

【讨论】:

    猜你喜欢
    • 2015-11-04
    • 2013-09-02
    • 2016-08-09
    • 2013-02-03
    • 2016-05-22
    • 2018-12-10
    • 2013-12-06
    • 2013-06-21
    • 2013-08-08
    相关资源
    最近更新 更多