我正在尝试安装 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