使用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