python-docx安装不起作用

时间:2014-07-23 13:08:02

标签: python redhat python-docx

我试图安装python-docx包但遇到问题......

Running setup.py install for lxml
    /opt/python2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
      warnings.warn(msg)
    Building lxml version 3.3.5.
    Building without Cython.
    ERROR: /bin/sh: xslt-config: command not found

    ** make sure the development packages of libxml2 and libxslt are installed **

如何安装libxml2和libxslt包?我从这里ftp://xmlsoft.org/libxml2/python/下载了包,但是出现了以下给出的安装问题......

[root@1d install]# cd libxml2-python-2.6.9
[root@1d libxml2-python-2.6.9]# dir
drv_libxml2.py          libxml.c       libxsl.py        libxslt-python-api.xml  README    types.c
libxml2-api.xml         libxml.py      libxslt-api.xml  libxslt_wrap.h          setup.py  xmlgenerator.py
libxml2-python-api.xml  libxml_wrap.h  libxslt.c        PKG-INFO                TODO      xsltgenerator.py
[root@1d libxml2-python-2.6.9]# python setup.py install
failed to find headers for libxml2: update includes_dir

0 个答案:

没有答案