zoukankan      html  css  js  c++  java
  • 使用pip安装python插件的时候出现Microsoft Visual C++ 9.0缺失错误

    使用pip安装python插件的时候出现Microsoft Visual C++ 9.0缺失错误

    使用pip安装python插件的时候出现Microsoft Visual C++ 9.0缺失错误

      Running setup.py install for gevent
        building 'gevent.corecext' extension
        error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat). Get it from http://aka.ms/vcpython27
        Complete output from command C:Python27python.exe -c "import setuptools, tokenize;__file__='c:\users\hello\appdata\local\temp\pip_build_hello\gevent\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace(' ', ' '), __file__, 'exec'))" install --record c:usershelloappdatalocal emppip-okbpxc-recordinstall-record.txt --single-version-externally-managed --compile:
        running install

    running build

    running build_py

    creating build

    creating buildlib.win-amd64-2.7

    creating buildlib.win-amd64-2.7gevent

    copying geventackdoor.py -> buildlib.win-amd64-2.7gevent

    copying geventaseserver.py -> buildlib.win-amd64-2.7gevent

    copying geventuiltins.py -> buildlib.win-amd64-2.7gevent

    copying geventcore.py -> buildlib.win-amd64-2.7gevent

    copying geventcorecffi.py -> buildlib.win-amd64-2.7gevent

    copying geventcoros.py -> buildlib.win-amd64-2.7gevent

    copying geventevent.py -> buildlib.win-amd64-2.7gevent

    copying geventfileobject.py -> buildlib.win-amd64-2.7gevent

    copying geventgreenlet.py -> buildlib.win-amd64-2.7gevent

    copying geventhub.py -> buildlib.win-amd64-2.7gevent

    copying geventlocal.py -> buildlib.win-amd64-2.7gevent

    copying geventlock.py -> buildlib.win-amd64-2.7gevent

    copying geventmonkey.py -> buildlib.win-amd64-2.7gevent

    copying geventos.py -> buildlib.win-amd64-2.7gevent

    copying geventpool.py -> buildlib.win-amd64-2.7gevent

    copying geventpywsgi.py -> buildlib.win-amd64-2.7gevent

    copying geventqueue.py -> buildlib.win-amd64-2.7gevent

    copying gevent esolver_ares.py -> buildlib.win-amd64-2.7gevent

    copying gevent esolver_thread.py -> buildlib.win-amd64-2.7gevent

    copying geventselect.py -> buildlib.win-amd64-2.7gevent

    copying geventserver.py -> buildlib.win-amd64-2.7gevent

    copying geventsignal.py -> buildlib.win-amd64-2.7gevent

    copying geventsocket.py -> buildlib.win-amd64-2.7gevent

    copying geventssl.py -> buildlib.win-amd64-2.7gevent

    copying geventsubprocess.py -> buildlib.win-amd64-2.7gevent

    copying gevent hread.py -> buildlib.win-amd64-2.7gevent

    copying gevent hreading.py -> buildlib.win-amd64-2.7gevent

    copying gevent hreadpool.py -> buildlib.win-amd64-2.7gevent

    copying gevent imeout.py -> buildlib.win-amd64-2.7gevent

    copying geventutil.py -> buildlib.win-amd64-2.7gevent

    copying geventwin32util.py -> buildlib.win-amd64-2.7gevent

    copying geventwsgi.py -> buildlib.win-amd64-2.7gevent

    copying gevent\_corecffi_build.py -> buildlib.win-amd64-2.7gevent

    copying gevent\_fileobjectcommon.py -> buildlib.win-amd64-2.7gevent

    copying gevent\_fileobjectposix.py -> buildlib.win-amd64-2.7gevent

    copying gevent\_semaphore.py -> buildlib.win-amd64-2.7gevent

    copying gevent\_socket2.py -> buildlib.win-amd64-2.7gevent

    copying gevent\_socket3.py -> buildlib.win-amd64-2.7gevent

    copying gevent\_socketcommon.py -> buildlib.win-amd64-2.7gevent

    copying gevent\_ssl2.py -> buildlib.win-amd64-2.7gevent

    copying gevent\_ssl3.py -> buildlib.win-amd64-2.7gevent

    copying gevent\_sslgte279.py -> buildlib.win-amd64-2.7gevent

    copying gevent\_tblib.py -> buildlib.win-amd64-2.7gevent

    copying gevent\_threading.py -> buildlib.win-amd64-2.7gevent

    copying gevent\_util_py2.py -> buildlib.win-amd64-2.7gevent

    copying gevent\__init__.py -> buildlib.win-amd64-2.7gevent

    running build_ext

    building 'gevent.corecext' extension

    error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat). Get it from http://aka.ms/vcpython27

    ----------------------------------------
    Cleaning up...【以下为红色】
    Command C:Python27python.exe -c "import setuptools, tokenize;__file__='c:\users\hello\appdata\local\temp\pip_build_hello\gevent\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace(' ', ' '), __file__, 'exec'))" install --record c:usershelloappdatalocal emppip-okbpxc-recordinstall-record.txt --single-version-externally-managed --compile failed with error code 1 in c:usershelloappdatalocal emppip_build_hellogevent
    Storing debug log for failure in C:Usershellopippip.log

    尝试解决方案

    到http://aka.ms/vcpython27下载vc4python27 安装后重试

    结果:解决了部分问题,然后又提示zlib缺少,可以看pip.log

  • 相关阅读:
    ASP.NET中在一般处理程序中使用session的简单介绍
    oracle 11gR2安装图文教程
    ORACEL 创建表空间
    Echarts使用心得总结(二)
    SqlServer 2008无法远程连接到服务器
    浅谈HTTP中Get与Post的区别
    java设计模式-观察者模式学习
    读牛人博客有感
    mysql的with rollup
    java中的枚举enum
  • 原文地址:https://www.cnblogs.com/qianheng/p/6240731.html
Copyright © 2011-2022 走看看