python pip install mitmproxy 错误 error: Unable to find vcvarsall.bat

2016-11-26 18:59:11 +08:00
 mingyun

看到这篇文章,然后安装 mitmproxy

    copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt
 -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
    running build_ext
    building 'lxml.etree' extension
    error: Unable to find vcvarsall.bat

    ----------------------------------------
  Rolling back uninstall of lxml
Command "d:\python3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\
Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-build-mbtvp5w8\\lxml\\setup.py';exec(
compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'),
__file__, 'exec'))" install --record C:\Users\ADMINI~1\AppData\Local\Temp\pip-is
1gcf25-record\install-record.txt --single-version-externally-managed --compile"
failed with error code 1 in C:\Users\ADMINI~1\AppData\Local\Temp\pip-build-mbtvp
5w8\lxml\

环境: windows python 3 已翻墙

165 次点击
所在节点    Python
3 条回复
stamaimer
2016-11-26 20:35:17 +08:00
你先看下 lxml 的文档怎么在 windows 下安装 lxml 。然后再装你这个包。然后劝你装个虚拟机,在 Linux 下搞。
mingyun
2016-11-26 20:43:25 +08:00
@stamaimer lxml 已经安装好了,但是 3.6 版本的,不是 3.5
hanbaobao2005
2016-11-28 12:47:04 +08:00

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/323512

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX