lxml不会使用easy_install在pypy下安装

做的时候:

$sudo pypy -m easy_install lxml

回应是:

Searching for lxml

[...snip...]

ERROR: /bin/sh: 1: xslt-config: not found

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

Using build configuration of libxslt 
/usr/lib/pypy/lib-python/2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
  warnings.warn(msg)
warning: no files found matching '*.txt' under directory 'src/lxml/tests'
src/lxml/lxml.etree.c:8:22: fatal error: pyconfig.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command 'cc' failed with exit status 1

同时,sudo pip install lxml工作正常.

这是怎么回事?

谢谢.

最佳答案
sudo apt-get install python-dev在ubuntu 13.04上为我修复了它

转载注明原文:lxml不会使用easy_install在pypy下安装 - 代码日志