gpt4 book ai didi

python - 无法在 centos 6 上安装 cairosvg

转载 作者:太空宇宙 更新时间:2023-11-03 17:19:07 25 4
gpt4 key购买 nike

在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/

最佳答案

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

关于python - 无法在 centos 6 上安装 cairosvg,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38537532/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com