Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sql-server-2005/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ubuntu 安装mitmproxy时出错_Ubuntu_Mitmproxy - Fatal编程技术网

Ubuntu 安装mitmproxy时出错

Ubuntu 安装mitmproxy时出错,ubuntu,mitmproxy,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'))" i

每次运行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配置:未找到

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

您需要找出从何处获取
xslt config
,然后首先安装它。

发布
/home/rg/.pip/pip.log的相关部分将给我们一个诊断问题的机会。我已经解决了问题!谢谢你,顺便说一句sudo apt get install libxslt1 dev libxml2 dev'完成了这个技巧