安装mitmproxy时出错

时间:2014-05-26 08:41:28

标签: ubuntu mitmproxy

每次运行sudo pip install mitmproxy时,都会出现以下错误:

`Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-X64rxt-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/lxml
Storing debug log for failure in /home/rg/.pip/pip.log`

我已经尝试过:sudo apt-get install libffi-dev但仍然收到错误!

日志文件有:      错误:/ bin / sh:1:xslt-config:not found

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

1 个答案:

答案 0 :(得分:0)

您需要确定从哪里获取xslt-config,并先安装它。