安装 clarifai (grpc) 失败,退出状态 1

Installing clarifai (grpc) failed, exit status 1

您使用的是什么版本的 gRPC 和什么语言? 最新的 什么操作系统(Linux、Windows、...)和版本? Windows 10 个服务器 您使用的是什么运行时/编译器(例如 python 版本或 gcc 版本)python 你做了什么? 试图从 pip install 命令安装它

ERROR: Command errored out with exit status 1: command: 'c:\users\administrator\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Administrator\AppData\Local\Temp\pip-install-6hv8xzb8\grpcio\setup.py'"'"'; file='"'"'C:\Users\Administrator\AppData\Local\Temp\pip-install-6hv8xzb8\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\Administrator\AppData\Local\Temp\pip-record-nkilt9xu\install-record.txt' --single-version-externally-managed --compile cwd: C:\Users\Administrator\AppData\Local\Temp\pip-install-6hv8xzb8\grpcio\ Complete output (66 lines): Found cython-generated files... running install running build running build_py running build_project_metadata creating python_build creating python_build\lib.win32-3.8 creating python_build\lib.win32-3.8\grpc copying src\python\grpcio\grpc_auth.py -> python_build\lib.win32-3.8\grpc copying src\python\grpcio\grpc_channel.py -> python_build\lib.win32-3.8\grpc copying src\python\grpcio\grpc_common.py -> python_build\lib.win32-3.8\grpc copying src\python\grpcio\grpc_compression.py -> python_build\lib.win32-3.8\grpc copying src\python\grpcio\grpc_grpcio_metadata.py -> python_build\lib.win32-3.8\grpc copying src\python\grpcio\grpc_interceptor.py -> python_build\lib.win32-3.8\grpc copying src\python\grpcio\grpc_plugin_wrapping.py -> python_build\lib.win32-3.8\grpc copying src\python\grpcio\grpc_server.py -> python_build\lib.win32-3.8\grpc copying src\python\grpcio\grpc_utilities.py -> python_build\lib.win32-3.8\grpc copying src\python\grpcio\grpc__init__.py -> python_build\lib.win32-3.8\grpc creating python_build\lib.win32-3.8\grpc\beta copying src\python\grpcio\grpc\beta\implementations.py -> python_build\lib.win32-3.8\grpc\beta copying src\python\grpcio\grpc\beta\interfaces.py -> python_build\lib.win32-3.8\grpc\beta copying src\python\grpcio\grpc\beta\utilities.py -> python_build\lib.win32-3.8\grpc\beta copying src\python\grpcio\grpc\beta_client_adaptations.py -> python_build\lib.win32-3.8\grpc\beta copying src\python\grpcio\grpc\beta_metadata.py -> python_build\lib.win32-3.8\grpc\beta copying src\python\grpcio\grpc\beta_server_adaptations.py -> python_build\lib.win32-3.8\grpc\beta copying src\python\grpcio\grpc\beta__init__.py -> python_build\lib.win32-3.8\grpc\beta creating python_build\lib.win32-3.8\grpc\experimental copying src\python\grpcio\grpc\experimental\gevent.py -> python_build\lib.win32-3.8\grpc\experimental copying src\python\grpcio\grpc\experimental\session_cache.py -> python_build\lib.win32-3.8\grpc\experimental copying src\python\grpcio\grpc\experimental__init__.py -> python_build\lib.win32-3.8\grpc\experimental creating python_build\lib.win32-3.8\grpc\framework copying src\python\grpcio\grpc\framework__init__.py -> python_build\lib.win32-3.8\grpc\framework creating python_build\lib.win32-3.8\grpc_cython copying src\python\grpcio\grpc_cython__init__.py -> python_build\lib.win32-3.8\grpc_cython creating python_build\lib.win32-3.8\grpc\experimental\aio copying src\python\grpcio\grpc\experimental\aio_channel.py -> python_build\lib.win32-3.8\grpc\experimental\aio copying src\python\grpcio\grpc\experimental\aio_server.py -> python_build\lib.win32-3.8\grpc\experimental\aio copying src\python\grpcio\grpc\experimental\aio__init__.py -> python_build\lib.win32-3.8\grpc\experimental\aio creating python_build\lib.win32-3.8\grpc\framework\common copying src\python\grpcio\grpc\framework\common\cardinality.py -> python_build\lib.win32-3.8\grpc\framework\common copying src\python\grpcio\grpc\framework\common\style.py -> python_build\lib.win32-3.8\grpc\framework\common copying src\python\grpcio\grpc\framework\common__init__.py -> python_build\lib.win32-3.8\grpc\framework\common creating python_build\lib.win32-3.8\grpc\framework\foundation copying src\python\grpcio\grpc\framework\foundation\abandonment.py -> python_build\lib.win32-3.8\grpc\framework\foundation copying src\python\grpcio\grpc\framework\foundation\callable_util.py -> python_build\lib.win32-3.8\grpc\framework\foundation copying src\python\grpcio\grpc\framework\foundation\future.py -> python_build\lib.win32-3.8\grpc\framework\foundation copying src\python\grpcio\grpc\framework\foundation\logging_pool.py -> python_build\lib.win32-3.8\grpc\framework\foundation copying src\python\grpcio\grpc\framework\foundation\stream.py -> python_build\lib.win32-3.8\grpc\framework\foundation copying src\python\grpcio\grpc\framework\foundation\stream_util.py -> python_build\lib.win32-3.8\grpc\framework\foundation copying src\python\grpcio\grpc\framework\foundation__init__.py -> python_build\lib.win32-3.8\grpc\framework\foundation creating python_build\lib.win32-3.8\grpc\framework\interfaces copying src\python\grpcio\grpc\framework\interfaces__init__.py -> python_build\lib.win32-3.8\grpc\framework\interfaces creating python_build\lib.win32-3.8\grpc\framework\interfaces\base copying src\python\grpcio\grpc\framework\interfaces\base\base.py -> python_build\lib.win32-3.8\grpc\framework\interfaces\base copying src\python\grpcio\grpc\framework\interfaces\base\utilities.py -> python_build\lib.win32-3.8\grpc\framework\interfaces\base copying src\python\grpcio\grpc\framework\interfaces\base__init__.py -> python_build\lib.win32-3.8\grpc\framework\interfaces\base creating python_build\lib.win32-3.8\grpc\framework\interfaces\face copying src\python\grpcio\grpc\framework\interfaces\face\face.py -> python_build\lib.win32-3.8\grpc\framework\interfaces\face copying src\python\grpcio\grpc\framework\interfaces\face\utilities.py -> python_build\lib.win32-3.8\grpc\framework\interfaces\face copying src\python\grpcio\grpc\framework\interfaces\face__init__.py -> python_build\lib.win32-3.8\grpc\framework\interfaces\face creating python_build\lib.win32-3.8\grpc_cython_cygrpc copying src\python\grpcio\grpc_cython_cygrpc__init__.py -> python_build\lib.win32-3.8\grpc_cython_cygrpc creating python_build\lib.win32-3.8\grpc_cython_credentials copying src\python\grpcio\grpc_cython_credentials\roots.pem -> python_build\lib.win32-3.8\grpc_cython_credentials running build_ext error: [WinError 2] Impossibile trovare il file specificato ---------------------------------------- ERROR: Command errored out with exit status 1: 'c:\users\administrator\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Administrator\AppData\Local\Temp\pip-install-6hv8xzb8\grpcio\setup.py'"'"'; file='"'"'C:\Users\Administrator\AppData\Local\Temp\pip-install-6hv8xzb8\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\Administrator\AppData\Local\Temp\pip-record-nkilt9xu\install-record.txt' --single-v

ersion-externally-managed --compile 检查日志以获得完整的命令输出。

希望像在我的个人计算机上一样安装它

gRPC 团队在跟踪添加 3.8 预编译轮 https://github.com/grpc/grpc/issues/20615 时遇到问题。目前,3.8 轮仅适用于 Linux,不适用于 Windows 或 macOS。我会推荐:

  1. 切换到 CPython 3.7;
  2. 通过深入了解编译错误来帮助社区。