when executing sudo pip install cairosvg on Centos getting following error
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.