V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
mingyun
V2EX  ›  Python

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

  •  
  •   mingyun · 2016-11-26 18:59:11 +08:00 · 160 次点击
    这是一个创建于 2699 天前的主题,其中的信息可能已经有所发展或是发生改变。

    看到这篇文章,然后安装 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 已翻墙

    stamaimer
        1
    stamaimer  
       2016-11-26 20:35:17 +08:00 via iPhone
    你先看下 lxml 的文档怎么在 windows 下安装 lxml 。然后再装你这个包。然后劝你装个虚拟机,在 Linux 下搞。
    mingyun
        2
    mingyun  
    OP
       2016-11-26 20:43:25 +08:00
    @stamaimer lxml 已经安装好了,但是 3.6 版本的,不是 3.5
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5604 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 06:34 · PVG 14:34 · LAX 23:34 · JFK 02:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.