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

  • 相关阅读:
    DataFrame遍历所有元素
    linux 安装redis 和系统学习redis
    接口
    安装idea教程
    Hello World!
    通过特征交互检测生成文本分类的层次解释《Generating Hierarchical Explanations on Text Classification via Feature Interaction Detection》(LIME算法、神经网络预测的分层解释CD和ACD、Shapley Value夏普利值、Leave-One-Out留一法、HEDGE)
    数字图像处理 乱记
    高傲的审稿人
    两项技能
    人其实会变的
  • 原文地址:https://www.cnblogs.com/qianheng/p/6240731.html
Copyright © 2011-2022 走看看