东方财富量化SDK安装Python报错

在东方财富量化里安装SDK,选择自动安装,然后出现了两个错误,哪位能够帮个忙,教教应该怎么操作才正确,我编程零基础,看不懂。

img

img

img

Building wheels for collected packages: grpcio
  Building wheel for grpcio (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'D:\Python27\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\18868\\appdata\\local\\temp\\pip-install-rmsxl2\\grpcio\\setup.py'"'"'; __file__='"'"'c:\\users\\18868\\appdata\\local\\temp\\pip-install-rmsxl2\\grpcio\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'c:\users\18868\appdata\local\temp\pip-wheel-rzxlf6'
       cwd: c:\users\18868\appdata\local\temp\pip-install-rmsxl2\grpcio\
  Complete output (148 lines):
  ('ASM Builds for BoringSSL currently not supported on:', 'win-amd64')
  Found cython-generated files...
  running bdist_wheel
  running build
  running build_py
  running build_project_metadata
  creating python_build
  creating python_build\lib.win-amd64-2.7
  creating python_build\lib.win-amd64-2.7\grpc
  copying src\python\grpcio\grpc\_auth.py -> python_build\lib.win-amd64-2.7\grpc
  copying src\python\grpcio\grpc\_channel.py -> python_build\lib.win-amd64-2.7\grpc
  copying src\python\grpcio\grpc\_common.py -> python_build\lib.win-amd64-2.7\grpc
  copying src\python\grpcio\grpc\_compression.py -> python_build\lib.win-amd64-2.7\grpc
  copying src\python\grpcio\grpc\_grpcio_metadata.py -> python_build\lib.win-amd64-2.7\grpc
  copying src\python\grpcio\grpc\_interceptor.py -> python_build\lib.win-amd64-2.7\grpc
  copying src\python\grpcio\grpc\_plugin_wrapping.py -> python_build\lib.win-amd64-2.7\grpc
  copying src\python\grpcio\grpc\_runtime_protos.py -> python_build\lib.win-amd64-2.7\grpc
  copying src\python\grpcio\grpc\_server.py -> python_build\lib.win-amd64-2.7\grpc
  copying src\python\grpcio\grpc\_simple_stubs.py -> python_build\lib.win-amd64-2.7\grpc
  copying src\python\grpcio\grpc\_utilities.py -> python_build\lib.win-amd64-2.7\grpc
  copying src\python\grpcio\grpc\__init__.py -> python_build\lib.win-amd64-2.7\grpc
  creating python_build\lib.win-amd64-2.7\grpc\aio
  copying src\python\grpcio\grpc\aio\_base_call.py -> python_build\lib.win-amd64-2.7\grpc\aio
  copying src\python\grpcio\grpc\aio\_base_channel.py -> python_build\lib.win-amd64-2.7\grpc\aio
  copying src\python\grpcio\grpc\aio\_base_server.py -> python_build\lib.win-amd64-2.7\grpc\aio
  copying src\python\grpcio\grpc\aio\_call.py -> python_build\lib.win-amd64-2.7\grpc\aio
  copying src\python\grpcio\grpc\aio\_channel.py -> python_build\lib.win-amd64-2.7\grpc\aio
  copying src\python\grpcio\grpc\aio\_interceptor.py -> python_build\lib.win-amd64-2.7\grpc\aio
  copying src\python\grpcio\grpc\aio\_metadata.py -> python_build\lib.win-amd64-2.7\grpc\aio
  copying src\python\grpcio\grpc\aio\_server.py -> python_build\lib.win-amd64-2.7\grpc\aio
  copying src\python\grpcio\grpc\aio\_typing.py -> python_build\lib.win-amd64-2.7\grpc\aio
  copying src\python\grpcio\grpc\aio\_utils.py -> python_build\lib.win-amd64-2.7\grpc\aio
  copying src\python\grpcio\grpc\aio\__init__.py -> python_build\lib.win-amd64-2.7\grpc\aio
  creating python_build\lib.win-amd64-2.7\grpc\beta
  copying src\python\grpcio\grpc\beta\implementations.py -> python_build\lib.win-amd64-2.7\grpc\beta
  copying src\python\grpcio\grpc\beta\interfaces.py -> python_build\lib.win-amd64-2.7\grpc\beta
  copying src\python\grpcio\grpc\beta\utilities.py -> python_build\lib.win-amd64-2.7\grpc\beta
  copying src\python\grpcio\grpc\beta\_client_adaptations.py -> python_build\lib.win-amd64-2.7\grpc\beta
  copying src\python\grpcio\grpc\beta\_metadata.py -> python_build\lib.win-amd64-2.7\grpc\beta
  copying src\python\grpcio\grpc\beta\_server_adaptations.py -> python_build\lib.win-amd64-2.7\grpc\beta
  copying src\python\grpcio\grpc\beta\__init__.py -> python_build\lib.win-amd64-2.7\grpc\beta
  creating python_build\lib.win-amd64-2.7\grpc\experimental
  copying src\python\grpcio\grpc\experimental\gevent.py -> python_build\lib.win-amd64-2.7\grpc\experimental
  copying src\python\grpcio\grpc\experimental\session_cache.py -> python_build\lib.win-amd64-2.7\grpc\experimental
  copying src\python\grpcio\grpc\experimental\__init__.py -> python_build\lib.win-amd64-2.7\grpc\experimental
  creating python_build\lib.win-amd64-2.7\grpc\framework
  copying src\python\grpcio\grpc\framework\__init__.py -> python_build\lib.win-amd64-2.7\grpc\framework
  creating python_build\lib.win-amd64-2.7\grpc\_cython
  copying src\python\grpcio\grpc\_cython\__init__.py -> python_build\lib.win-amd64-2.7\grpc\_cython
  creating python_build\lib.win-amd64-2.7\grpc\experimental\aio
  copying src\python\grpcio\grpc\experimental\aio\__init__.py -> python_build\lib.win-amd64-2.7\grpc\experimental\aio
  creating python_build\lib.win-amd64-2.7\grpc\framework\common
  copying src\python\grpcio\grpc\framework\common\cardinality.py -> python_build\lib.win-amd64-2.7\grpc\framework\common
  copying src\python\grpcio\grpc\framework\common\style.py -> python_build\lib.win-amd64-2.7\grpc\framework\common
  copying src\python\grpcio\grpc\framework\common\__init__.py -> python_build\lib.win-amd64-2.7\grpc\framework\common
  creating python_build\lib.win-amd64-2.7\grpc\framework\foundation
  copying src\python\grpcio\grpc\framework\foundation\abandonment.py -> python_build\lib.win-amd64-2.7\grpc\framework\foundation
  copying src\python\grpcio\grpc\framework\foundation\callable_util.py -> python_build\lib.win-amd64-2.7\grpc\framework\foundation
  copying src\python\grpcio\grpc\framework\foundation\future.py -> python_build\lib.win-amd64-2.7\grpc\framework\foundation
  copying src\python\grpcio\grpc\framework\foundation\logging_pool.py -> python_build\lib.win-amd64-2.7\grpc\framework\foundation
  copying src\python\grpcio\grpc\framework\foundation\stream.py -> python_build\lib.win-amd64-2.7\grpc\framework\foundation
  copying src\python\grpcio\grpc\framework\foundation\stream_util.py -> python_build\lib.win-amd64-2.7\grpc\framework\foundation
  copying src\python\grpcio\grpc\framework\foundation\__init__.py -> python_build\lib.win-amd64-2.7\grpc\framework\foundation
  creating python_build\lib.win-amd64-2.7\grpc\framework\interfaces
  copying src\python\grpcio\grpc\framework\interfaces\__init__.py -> python_build\lib.win-amd64-2.7\grpc\framework\interfaces
  creating python_build\lib.win-amd64-2.7\grpc\framework\interfaces\base
  copying src\python\grpcio\grpc\framework\interfaces\base\base.py -> python_build\lib.win-amd64-2.7\grpc\framework\interfaces\base
  copying src\python\grpcio\grpc\framework\interfaces\base\utilities.py -> python_build\lib.win-amd64-2.7\grpc\framework\interfaces\base
  copying src\python\grpcio\grpc\framework\interfaces\base\__init__.py -> python_build\lib.win-amd64-2.7\grpc\framework\interfaces\base
  creating python_build\lib.win-amd64-2.7\grpc\framework\interfaces\face
  copying src\python\grpcio\grpc\framework\interfaces\face\face.py -> python_build\lib.win-amd64-2.7\grpc\framework\interfaces\face
  copying src\python\grpcio\grpc\framework\interfaces\face\utilities.py -> python_build\lib.win-amd64-2.7\grpc\framework\interfaces\face
  copying src\python\grpcio\grpc\framework\interfaces\face\__init__.py -> python_build\lib.win-amd64-2.7\grpc\framework\interfaces\face
  creating python_build\lib.win-amd64-2.7\grpc\_cython\_cygrpc
  copying src\python\grpcio\grpc\_cython\_cygrpc\__init__.py -> python_build\lib.win-amd64-2.7\grpc\_cython\_cygrpc
  creating python_build\lib.win-amd64-2.7\grpc\_cython\_credentials
  copying src\python\grpcio\grpc\_cython\_credentials\roots.pem -> python_build\lib.win-amd64-2.7\grpc\_cython\_credentials
  running build_ext
  Non-fatal exception:Traceback (most recent call last):
    File "c:\users\18868\appdata\local\temp\pip-install-rmsxl2\grpcio\src\python\grpcio\commands.py", line 239, in compiler_ok_with_extra_std
      stderr=subprocess.PIPE)
    File "D:\Python27\lib\subprocess.py", line 394, in __init__
      errread, errwrite)
    File "D:\Python27\lib\subprocess.py", line 644, in _execute_child
      startupinfo)
  WindowsError: [Error 2]

  Found cython-generated files...
  building 'grpc._cython.cygrpc' extension
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "c:\users\18868\appdata\local\temp\pip-install-rmsxl2\grpcio\setup.py", line 542, in <module>
      cmdclass=COMMAND_CLASS,
    File "D:\Python27\lib\site-packages\setuptools\__init__.py", line 145, in setup
      return distutils.core.setup(**attrs)
    File "D:\Python27\lib\distutils\core.py", line 151, in setup
      dist.run_commands()
    File "D:\Python27\lib\distutils\dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "D:\Python27\lib\distutils\dist.py", line 972, in run_command
      cmd_obj.run()
    File "D:\Python27\lib\site-packages\wheel\bdist_wheel.py", line 299, in run
      self.run_command('build')
    File "D:\Python27\lib\distutils\cmd.py", line 326, in run_command
      self.distribution.run_command(command)
    File "D:\Python27\lib\distutils\dist.py", line 972, in run_command
      cmd_obj.run()
    File "D:\Python27\lib\distutils\command\build.py", line 127, in run
      self.run_command(cmd_name)
    File "D:\Python27\lib\distutils\cmd.py", line 326, in run_command
      self.distribution.run_command(command)
    File "D:\Python27\lib\distutils\dist.py", line 972, in run_command
      cmd_obj.run()
    File "D:\Python27\lib\site-packages\setuptools\command\build_ext.py", line 84, in run
      _build_ext.run(self)
    File "D:\Python27\lib\distutils\command\build_ext.py", line 340, in run
      self.build_extensions()
    File "c:\users\18868\appdata\local\temp\pip-install-rmsxl2\grpcio\src\python\grpcio\commands.py", line 288, in build_extensions
      support.diagnose_build_ext_error(self, error, formatted_exception)
    File "c:\users\18868\appdata\local\temp\pip-install-rmsxl2\grpcio\src\python\grpcio\support.py", line 115, in diagnose_build_ext_error
      "backtrace).\n\n{}".format(formatted))
  commands.CommandError:

  We could not diagnose your build failure. If you are unable to proceed, please file an issue at http://www.github.com/grpc/grpc with `[Python install]` in the title; please attach the whole log (including everything that may have appeared above the Python backtrace).

  Traceback (most recent call last):
    File "c:\users\18868\appdata\local\temp\pip-install-rmsxl2\grpcio\src\python\grpcio\commands.py", line 285, in build_extensions
      build_ext.build_ext.build_extensions(self)
    File "D:\Python27\lib\distutils\command\build_ext.py", line 449, in build_extensions
      self.build_extension(ext)
    File "D:\Python27\lib\site-packages\setuptools\command\build_ext.py", line 205, in build_extension
      _build_ext.build_extension(self, ext)
    File "D:\Python27\lib\distutils\command\build_ext.py", line 499, in build_extension
      depends=ext.depends)
    File "D:\Python27\lib\distutils\msvc9compiler.py", line 473, in compile
      self.initialize()
    File "D:\Python27\lib\distutils\msvc9compiler.py", line 383, in initialize
      vc_env = query_vcvarsall(VERSION, plat_spec)
    File "D:\Python27\lib\site-packages\setuptools\msvc.py", line 147, in msvc9_query_vcvarsall
      return EnvironmentInfo(arch, ver).return_env()
    File "D:\Python27\lib\site-packages\setuptools\msvc.py", line 1227, in return_env
      [self.VCIncludes,
    File "D:\Python27\lib\site-packages\setuptools\msvc.py", line 876, in VCIncludes
      return [os.path.join(self.si.VCInstallDir, 'Include'),
    File "D:\Python27\lib\site-packages\setuptools\msvc.py", line 555, in VCInstallDir
      raise distutils.errors.DistutilsPlatformError(msg)
  DistutilsPlatformError: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27

  ----------------------------------------
  ERROR: Failed building wheel for grpcio
  Running setup.py clean for grpcio
Failed to build grpcio
Installing collected packages: six, python-dateutil, backports.functools-lru-cache, arrow, Cython, futures, enum34, grpcio, typing, numpy, scipy, pytz, pandas, protobuf, gm
  WARNING: The scripts cygdb.exe, cython.exe and cythonize.exe are installed in 'C:\Users\18868\AppData\Roaming\Python\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
    Running setup.py install for grpcio ... error
    ERROR: Command errored out with exit status 1:
     command: 'D:\Python27\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\18868\\appdata\\local\\temp\\pip-install-rmsxl2\\grpcio\\setup.py'"'"'; __file__='"'"'c:\\users\\18868\\appdata\\local\\temp\\pip-install-rmsxl2\\grpcio\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'c:\users\18868\appdata\local\temp\pip-record-m7mm70\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\18868\AppData\Roaming\Python\Python27\Include\grpcio'
         cwd: c:\users\18868\appdata\local\temp\pip-install-rmsxl2\grpcio\
    Complete output (158 lines):
    ('ASM Builds for BoringSSL currently not supported on:', 'win-amd64')
    Cython-generated files are missing...
    Compiling src\python\grpcio\grpc/_cython/cygrpc.pyx because it changed.
    [1/1] Cythonizing src\python\grpcio\grpc/_cython/cygrpc.pyx
    C:\Users\18868\AppData\Roaming\Python\Python27\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: c:\users\18868\appdata\local\temp\pip-install-rmsxl2\grpcio\src\python\grpcio\grpc\_cython\cygrpc.pxd
      tree = Parsing.p_module(s, pxd, full_module_name)
    running install
    running build
    running build_py
    running build_project_metadata
    creating python_build
    creating python_build\lib.win-amd64-2.7
    creating python_build\lib.win-amd64-2.7\grpc
    copying src\python\grpcio\grpc\_auth.py -> python_build\lib.win-amd64-2.7\grpc
    copying src\python\grpcio\grpc\_channel.py -> python_build\lib.win-amd64-2.7\grpc
    copying src\python\grpcio\grpc\_common.py -> python_build\lib.win-amd64-2.7\grpc
    copying src\python\grpcio\grpc\_compression.py -> python_build\lib.win-amd64-2.7\grpc
    copying src\python\grpcio\grpc\_grpcio_metadata.py -> python_build\lib.win-amd64-2.7\grpc
    copying src\python\grpcio\grpc\_interceptor.py -> python_build\lib.win-amd64-2.7\grpc
    copying src\python\grpcio\grpc\_plugin_wrapping.py -> python_build\lib.win-amd64-2.7\grpc
    copying src\python\grpcio\grpc\_runtime_protos.py -> python_build\lib.win-amd64-2.7\grpc
    copying src\python\grpcio\grpc\_server.py -> python_build\lib.win-amd64-2.7\grpc
    copying src\python\grpcio\grpc\_simple_stubs.py -> python_build\lib.win-amd64-2.7\grpc
    copying src\python\grpcio\grpc\_utilities.py -> python_build\lib.win-amd64-2.7\grpc
    copying src\python\grpcio\grpc\__init__.py -> python_build\lib.win-amd64-2.7\grpc
    creating python_build\lib.win-amd64-2.7\grpc\aio
    copying src\python\grpcio\grpc\aio\_base_call.py -> python_build\lib.win-amd64-2.7\grpc\aio
    copying src\python\grpcio\grpc\aio\_base_channel.py -> python_build\lib.win-amd64-2.7\grpc\aio
    copying src\python\grpcio\grpc\aio\_base_server.py -> python_build\lib.win-amd64-2.7\grpc\aio
    copying src\python\grpcio\grpc\aio\_call.py -> python_build\lib.win-amd64-2.7\grpc\aio
    copying src\python\grpcio\grpc\aio\_channel.py -> python_build\lib.win-amd64-2.7\grpc\aio
    copying src\python\grpcio\grpc\aio\_interceptor.py -> python_build\lib.win-amd64-2.7\grpc\aio
    copying src\python\grpcio\grpc\aio\_metadata.py -> python_build\lib.win-amd64-2.7\grpc\aio
    copying src\python\grpcio\grpc\aio\_server.py -> python_build\lib.win-amd64-2.7\grpc\aio
    copying src\python\grpcio\grpc\aio\_typing.py -> python_build\lib.win-amd64-2.7\grpc\aio
    copying src\python\grpcio\grpc\aio\_utils.py -> python_build\lib.win-amd64-2.7\grpc\aio
    copying src\python\grpcio\grpc\aio\__init__.py -> python_build\lib.win-amd64-2.7\grpc\aio
    creating python_build\lib.win-amd64-2.7\grpc\beta
    copying src\python\grpcio\grpc\beta\implementations.py -> python_build\lib.win-amd64-2.7\grpc\beta
    copying src\python\grpcio\grpc\beta\interfaces.py -> python_build\lib.win-amd64-2.7\grpc\beta
    copying src\python\grpcio\grpc\beta\utilities.py -> python_build\lib.win-amd64-2.7\grpc\beta
    copying src\python\grpcio\grpc\beta\_client_adaptations.py -> python_build\lib.win-amd64-2.7\grpc\beta
    copying src\python\grpcio\grpc\beta\_metadata.py -> python_build\lib.win-amd64-2.7\grpc\beta
    copying src\python\grpcio\grpc\beta\_server_adaptations.py -> python_build\lib.win-amd64-2.7\grpc\beta
    copying src\python\grpcio\grpc\beta\__init__.py -> python_build\lib.win-amd64-2.7\grpc\beta
    creating python_build\lib.win-amd64-2.7\grpc\experimental
    copying src\python\grpcio\grpc\experimental\gevent.py -> python_build\lib.win-amd64-2.7\grpc\experimental
    copying src\python\grpcio\grpc\experimental\session_cache.py -> python_build\lib.win-amd64-2.7\grpc\experimental
    copying src\python\grpcio\grpc\experimental\__init__.py -> python_build\lib.win-amd64-2.7\grpc\experimental
    creating python_build\lib.win-amd64-2.7\grpc\framework
    copying src\python\grpcio\grpc\framework\__init__.py -> python_build\lib.win-amd64-2.7\grpc\framework
    creating python_build\lib.win-amd64-2.7\grpc\_cython
    copying src\python\grpcio\grpc\_cython\__init__.py -> python_build\lib.win-amd64-2.7\grpc\_cython
    creating python_build\lib.win-amd64-2.7\grpc\experimental\aio
    copying src\python\grpcio\grpc\experimental\aio\__init__.py -> python_build\lib.win-amd64-2.7\grpc\experimental\aio
    creating python_build\lib.win-amd64-2.7\grpc\framework\common
    copying src\python\grpcio\grpc\framework\common\cardinality.py -> python_build\lib.win-amd64-2.7\grpc\framework\common
    copying src\python\grpcio\grpc\framework\common\style.py -> python_build\lib.win-amd64-2.7\grpc\framework\common
    copying src\python\grpcio\grpc\framework\common\__init__.py -> python_build\lib.win-amd64-2.7\grpc\framework\common
    creating python_build\lib.win-amd64-2.7\grpc\framework\foundation
    copying src\python\grpcio\grpc\framework\foundation\abandonment.py -> python_build\lib.win-amd64-2.7\grpc\framework\foundation
    copying src\python\grpcio\grpc\framework\foundation\callable_util.py -> python_build\lib.win-amd64-2.7\grpc\framework\foundation
    copying src\python\grpcio\grpc\framework\foundation\future.py -> python_build\lib.win-amd64-2.7\grpc\framework\foundation
    copying src\python\grpcio\grpc\framework\foundation\logging_pool.py -> python_build\lib.win-amd64-2.7\grpc\framework\foundation
    copying src\python\grpcio\grpc\framework\foundation\stream.py -> python_build\lib.win-amd64-2.7\grpc\framework\foundation
    copying src\python\grpcio\grpc\framework\foundation\stream_util.py -> python_build\lib.win-amd64-2.7\grpc\framework\foundation
    copying src\python\grpcio\grpc\framework\foundation\__init__.py -> python_build\lib.win-amd64-2.7\grpc\framework\foundation
    creating python_build\lib.win-amd64-2.7\grpc\framework\interfaces
    copying src\python\grpcio\grpc\framework\interfaces\__init__.py -> python_build\lib.win-amd64-2.7\grpc\framework\interfaces
    creating python_build\lib.win-amd64-2.7\grpc\framework\interfaces\base
    copying src\python\grpcio\grpc\framework\interfaces\base\base.py -> python_build\lib.win-amd64-2.7\grpc\framework\interfaces\base
    copying src\python\grpcio\grpc\framework\interfaces\base\utilities.py -> python_build\lib.win-amd64-2.7\grpc\framework\interfaces\base
    copying src\python\grpcio\grpc\framework\interfaces\base\__init__.py -> python_build\lib.win-amd64-2.7\grpc\framework\interfaces\base
    creating python_build\lib.win-amd64-2.7\grpc\framework\interfaces\face
    copying src\python\grpcio\grpc\framework\interfaces\face\face.py -> python_build\lib.win-amd64-2.7\grpc\framework\interfaces\face
    copying src\python\grpcio\grpc\framework\interfaces\face\utilities.py -> python_build\lib.win-amd64-2.7\grpc\framework\interfaces\face
    copying src\python\grpcio\grpc\framework\interfaces\face\__init__.py -> python_build\lib.win-amd64-2.7\grpc\framework\interfaces\face
    creating python_build\lib.win-amd64-2.7\grpc\_cython\_cygrpc
    copying src\python\grpcio\grpc\_cython\_cygrpc\__init__.py -> python_build\lib.win-amd64-2.7\grpc\_cython\_cygrpc
    creating python_build\lib.win-amd64-2.7\grpc\_cython\_credentials
    copying src\python\grpcio\grpc\_cython\_credentials\roots.pem -> python_build\lib.win-amd64-2.7\grpc\_cython\_credentials
    running build_ext
    Non-fatal exception:Traceback (most recent call last):
      File "c:\users\18868\appdata\local\temp\pip-install-rmsxl2\grpcio\src\python\grpcio\commands.py", line 239, in compiler_ok_with_extra_std
        stderr=subprocess.PIPE)
      File "D:\Python27\lib\subprocess.py", line 394, in __init__
        errread, errwrite)
      File "D:\Python27\lib\subprocess.py", line 644, in _execute_child
        startupinfo)
    WindowsError: [Error 2]

    Found cython-generated files...
    building 'grpc._cython.cygrpc' extension
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\users\18868\appdata\local\temp\pip-install-rmsxl2\grpcio\setup.py", line 542, in <module>
        cmdclass=COMMAND_CLASS,
      File "D:\Python27\lib\site-packages\setuptools\__init__.py", line 145, in setup
        return distutils.core.setup(**attrs)
      File "D:\Python27\lib\distutils\core.py", line 151, in setup
        dist.run_commands()
      File "D:\Python27\lib\distutils\dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "D:\Python27\lib\distutils\dist.py", line 972, in run_command
        cmd_obj.run()
      File "D:\Python27\lib\site-packages\setuptools\command\install.py", line 61, in run
        return orig.install.run(self)
      File "D:\Python27\lib\distutils\command\install.py", line 563, in run
        self.run_command('build')
      File "D:\Python27\lib\distutils\cmd.py", line 326, in run_command
        self.distribution.run_command(command)
      File "D:\Python27\lib\distutils\dist.py", line 972, in run_command
        cmd_obj.run()
      File "D:\Python27\lib\distutils\command\build.py", line 127, in run
        self.run_command(cmd_name)
      File "D:\Python27\lib\distutils\cmd.py", line 326, in run_command
        self.distribution.run_command(command)
      File "D:\Python27\lib\distutils\dist.py", line 972, in run_command
        cmd_obj.run()
      File "D:\Python27\lib\site-packages\setuptools\command\build_ext.py", line 84, in run
        _build_ext.run(self)
      File "C:\Users\18868\AppData\Roaming\Python\Python27\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run
        _build_ext.build_ext.run(self)
      File "D:\Python27\lib\distutils\command\build_ext.py", line 340, in run
        self.build_extensions()
      File "c:\users\18868\appdata\local\temp\pip-install-rmsxl2\grpcio\src\python\grpcio\commands.py", line 288, in build_extensions
        support.diagnose_build_ext_error(self, error, formatted_exception)
      File "c:\users\18868\appdata\local\temp\pip-install-rmsxl2\grpcio\src\python\grpcio\support.py", line 115, in diagnose_build_ext_error
        "backtrace).\n\n{}".format(formatted))
    commands.CommandError:

    We could not diagnose your build failure. If you are unable to proceed, please file an issue at http://www.github.com/grpc/grpc with `[Python install]` in the title; please attach the whole log (including everything that may have appeared above the Python backtrace).

    Traceback (most recent call last):
      File "c:\users\18868\appdata\local\temp\pip-install-rmsxl2\grpcio\src\python\grpcio\commands.py", line 285, in build_extensions
        build_ext.build_ext.build_extensions(self)
      File "C:\Users\18868\AppData\Roaming\Python\Python27\site-packages\Cython\Distutils\old_build_ext.py", line 195, in build_extensions
        _build_ext.build_ext.build_extensions(self)
      File "D:\Python27\lib\distutils\command\build_ext.py", line 449, in build_extensions
        self.build_extension(ext)
      File "D:\Python27\lib\site-packages\setuptools\command\build_ext.py", line 205, in build_extension
        _build_ext.build_extension(self, ext)
      File "D:\Python27\lib\distutils\command\build_ext.py", line 499, in build_extension
        depends=ext.depends)
      File "D:\Python27\lib\distutils\msvc9compiler.py", line 473, in compile
        self.initialize()
      File "D:\Python27\lib\distutils\msvc9compiler.py", line 383, in initialize
        vc_env = query_vcvarsall(VERSION, plat_spec)
      File "D:\Python27\lib\site-packages\setuptools\msvc.py", line 147, in msvc9_query_vcvarsall
        return EnvironmentInfo(arch, ver).return_env()
      File "D:\Python27\lib\site-packages\setuptools\msvc.py", line 1227, in return_env
        [self.VCIncludes,
      File "D:\Python27\lib\site-packages\setuptools\msvc.py", line 876, in VCIncludes
        return [os.path.join(self.si.VCInstallDir, 'Include'),
      File "D:\Python27\lib\site-packages\setuptools\msvc.py", line 555, in VCInstallDir
        raise distutils.errors.DistutilsPlatformError(msg)
    DistutilsPlatformError: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27

    ----------------------------------------
ERROR: Command errored out with exit status 1: 'D:\Python27\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\18868\\appdata\\local\\temp\\pip-install-rmsxl2\\grpcio\\setup.py'"'"'; __file__='"'"'c:\\users\\18868\\appdata\\local\\temp\\pip-install-rmsxl2\\grpcio\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'c:\users\18868\appdata\local\temp\pip-record-m7mm70\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\18868\AppData\Roaming\Python\Python27\Include\grpcio' Check the logs for full command output.


那你找我吧

你用手动安装

不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^