相关疑难解决方法(0)

无法使用 pip install grpcio 安装 grpcio

在我的 Windows 机器上使用 pip install grpcio 安装 grpcio 时出现错误。我在这里阅读 - https://github.com/grpc/grpc/issues/17829,这可能是由于 setuptools 版本中的错误。我将我的 setuptools 升级到最新版本,即 41.0.1 。仍然得到相同的构建错误。它不会发生在任何其他包中。我试过在我的笔记本电脑上重新安装 pip 和 python。我附上我的错误

Building wheels for collected packages: grpcio
Building wheel for grpcio (setup.py) ... error
ERROR: Complete output from command 'c:\python27\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'c:\\users\\s\\appdata\\local\\temp\\pip-install-ge5zhq\\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\s\appdata\local\temp\pip-wheel-txjhlh' --python-tag cp27:
  ERROR: 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 -> …
Run Code Online (Sandbox Code Playgroud)

build python-2.7 grpc

35
推荐指数
3
解决办法
3万
查看次数

标签 统计

build ×1

grpc ×1

python-2.7 ×1