gpt4 book ai didi

lxml 不会使用 easy_install 安装在 pypy 下

转载 作者:行者123 更新时间:2023-12-04 23:32:11 24 4
gpt4 key购买 nike

做的时候:

$ 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 下,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17341887/

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