使用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:\Python27\python.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('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\hello\appdata\local\temp\pip-okbpxc-record\install-record.txt --single-version-externally-managed --compile: running installrunning buildrunning build_pycreating buildcreating build\lib.win-amd64-2.7creating build\lib.win-amd64-2.7\geventcopying gevent\backdoor.py -> build\lib.win-amd64-2.7\geventcopying gevent\baseserver.py -> build\lib.win-amd64-2.7\geventcopying gevent\builtins.py -> build\lib.win-amd64-2.7\geventcopying gevent\core.py -> build\lib.win-amd64-2.7\geventcopying gevent\corecffi.py -> build\lib.win-amd64-2.7\geventcopying gevent\coros.py -> build\lib.win-amd64-2.7\geventcopying gevent\event.py -> build\lib.win-amd64-2.7\geventcopying gevent\fileobject.py -> build\lib.win-amd64-2.7\geventcopying gevent\greenlet.py -> build\lib.win-amd64-2.7\geventcopying gevent\hub.py -> build\lib.win-amd64-2.7\geventcopying gevent\local.py -> build\lib.win-amd64-2.7\geventcopying gevent\lock.py -> build\lib.win-amd64-2.7\geventcopying gevent\monkey.py -> build\lib.win-amd64-2.7\geventcopying gevent\os.py -> build\lib.win-amd64-2.7\geventcopying gevent\pool.py -> build\lib.win-amd64-2.7\geventcopying gevent\pywsgi.py -> build\lib.win-amd64-2.7\geventcopying gevent\queue.py -> build\lib.win-amd64-2.7\geventcopying gevent\resolver_ares.py -> build\lib.win-amd64-2.7\geventcopying gevent\resolver_thread.py -> build\lib.win-amd64-2.7\geventcopying gevent\select.py -> build\lib.win-amd64-2.7\geventcopying gevent\server.py -> build\lib.win-amd64-2.7\geventcopying gevent\signal.py -> build\lib.win-amd64-2.7\geventcopying gevent\socket.py -> build\lib.win-amd64-2.7\geventcopying gevent\ssl.py -> build\lib.win-amd64-2.7\geventcopying gevent\subprocess.py -> build\lib.win-amd64-2.7\geventcopying gevent\thread.py -> build\lib.win-amd64-2.7\geventcopying gevent\threading.py -> build\lib.win-amd64-2.7\geventcopying gevent\threadpool.py -> build\lib.win-amd64-2.7\geventcopying gevent\timeout.py -> build\lib.win-amd64-2.7\geventcopying gevent\util.py -> build\lib.win-amd64-2.7\geventcopying gevent\win32util.py -> build\lib.win-amd64-2.7\geventcopying gevent\wsgi.py -> build\lib.win-amd64-2.7\geventcopying gevent\_corecffi_build.py -> build\lib.win-amd64-2.7\geventcopying gevent\_fileobjectcommon.py -> build\lib.win-amd64-2.7\geventcopying gevent\_fileobjectposix.py -> build\lib.win-amd64-2.7\geventcopying gevent\_semaphore.py -> build\lib.win-amd64-2.7\geventcopying gevent\_socket2.py -> build\lib.win-amd64-2.7\geventcopying gevent\_socket3.py -> build\lib.win-amd64-2.7\geventcopying gevent\_socketcommon.py -> build\lib.win-amd64-2.7\geventcopying gevent\_ssl2.py -> build\lib.win-amd64-2.7\geventcopying gevent\_ssl3.py -> build\lib.win-amd64-2.7\geventcopying gevent\_sslgte279.py -> build\lib.win-amd64-2.7\geventcopying gevent\_tblib.py -> build\lib.win-amd64-2.7\geventcopying gevent\_threading.py -> build\lib.win-amd64-2.7\geventcopying gevent\_util_py2.py -> build\lib.win-amd64-2.7\geventcopying gevent\__init__.py -> build\lib.win-amd64-2.7\geventrunning build_extbuilding 'gevent.corecext' extensionerror: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat). Get it from http://aka.ms/vcpython27----------------------------------------Cleaning up...【以下为红色】Command C:\Python27\python.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('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\hello\appdata\local\temp\pip-okbpxc-record\install-record.txt --single-version-externally-managed --compile failed with error code 1 in c:\users\hello\appdata\local\temp\pip_build_hello\geventStoring debug log for failure in C:\Users\hello\pip\pip.log
尝试解决方案
到http://aka.ms/vcpython27下载vc4python27 安装后重试
结果:解决了部分问题,然后又提示zlib缺少,可以看pip.log