如何修复错误&x201C;错误:命令出错,退出状态为1:python.&x201D;当尝试安装py-mpip时,请安装GoogleAssistantSDK[示例]

如何修复错误&x201C;错误:命令出错,退出状态为1:python.&x201D;当尝试安装py-mpip时,请安装GoogleAssistantSDK[示例],python,google-assistant-sdk,Python,Google Assistant Sdk,这是我在cmd中以管理员权限运行命令py-m pip install google assistant sdk[samples]时得到的 C:\WINDOWS\system32>py -m pip install google-assistant-sdk[samples] 正在收集google assistant sdk[示例] 使用缓存 已满足要求:c:\program files(x86)\python38-32\lib\site软件包中的google auth oauthlib[

这是我在cmd中以管理员权限运行命令
py-m pip install google assistant sdk[samples]
时得到的

C:\WINDOWS\system32>py -m pip install google-assistant-sdk[samples]
正在收集google assistant sdk[示例] 使用缓存

已满足要求:c:\program files(x86)\python38-32\lib\site软件包中的google auth oauthlib[tool]>=0.1.0(来自google assistant sdk[samples])(0.4.1)
已满足要求:sounddevice=0.3.7;extra==“c:\program files(x86)\python38-32\lib\site软件包中的“示例”(来自google assistant sdk[samples])(0.3.14)
已满足的要求:期货=3.1.1;extra==“c:\program files(x86)\python38-32\lib\site软件包中的“示例”(来自google assistant sdk[samples])(3.1.1)
收集谷歌助手grpc==0.2.1;额外==“样本”
使用缓存https://files.pythonhosted.org/packages/4b/5d/50dbb8197961acf8a4339e8950e0110159456c4ef48234751d1b5f2e919b/google_assistant_grpc-0.2.1-py2.py3-none-any.whl
已满足要求:pathlib2=2.3.0;extra==“c:\program files(x86)\python38-32\lib\site软件包中的“示例”(来自google assistant sdk[samples])(2.3.5)
已经满足的要求:urllib3[secure]=1.21;extra==“c:\program files(x86)\python38-32\lib\site软件包中的“示例”(来自google assistant sdk[samples])(1.25.6)
已满足要求:韧性=4.1.0;extra==“c:\program files(x86)\python38-32\lib\site软件包中的“示例”(来自google assistant sdk[samples])(4.12.0)
已满足要求:点击=6.7;extra==“c:\program files(x86)\python38-32\lib\site软件包中的“示例”(来自google assistant sdk[samples])(6.7)
已满足要求:c:\program files(x86)\python38-32\lib\site软件包中的google auth(来自google auth oauthlib[tool]>=0.1.0->google assistant sdk[samples])(1.6.3)
已满足要求:在c:\program files(x86)\python38-32\lib\site软件包中请求oauthlib>=0.7.0(来自google auth oauthlib[tool]>=0.1.0->google assistant sdk[samples])(1.2.0)
已满足要求:c:\program files(x86)\python38-32\lib\site软件包中的CFFI>=1.0(来自sounddevice=0.3.7;额外==“示例”->google assistant sdk[samples])(1.13.1)
收集googleapis通用原型>=1.5.2
使用缓存https://files.pythonhosted.org/packages/eb/ee/e59e74ecac678a14d6abefb9054f0bbcb318a6452a30df3776f133886d7d/googleapis-common-protos-1.6.0.tar.gz
收集grpcio>=1.3.5
使用缓存https://files.pythonhosted.org/packages/e4/60/40c4d2b61d9e4349bc89445deb8d04cc000b10a63446c42d311e0d21d127/grpcio-1.25.0.tar.gz
已满足要求:c:\program files(x86)\python38-32\lib\site软件包中有六个(来自pathlib2=2.3.0;extra==“samples”->google assistant sdk[samples])(1.12.0)
已满足要求:idna>=2.0.0;extra==“安全”在c:\program files(x86)\python38-32\lib\site软件包中(来自urllib3[secure]=1.21;extra==“samples”->google assistant sdk[samples])(2.8)
已满足要求:pyOpenSSL>=0.14;extra==“安全”在c:\program files(x86)\python38-32\lib\site软件包中(来自urllib3[secure]=1.21;extra==“samples”->google assistant sdk[samples])(19.0.0)
已满足要求:加密>=1.3.4;extra==“安全”在c:\program files(x86)\python38-32\lib\site软件包中(来自urllib3[secure]=1.21;extra==“samples”->google assistant sdk[samples])(2.8)
已满足的要求:certifi;extra==“安全”在c:\program files(x86)\python38-32\lib\site软件包中(来自urllib3[secure]=1.21;extra==“samples”->google assistant sdk[samples])(2019.9.11)
已满足要求:c:\program files(x86)\python38-32\lib\site软件包中的cachetools>=2.0.0(来自google auth->google auth oauthlib[tool]>=0.1.0->google assistant sdk[samples])(3.1.1)
已满足要求:c:\program files(x86)\python38-32\lib\site软件包中的rsa>=3.1.4(来自google auth->google auth oauthlib[tool]>=0.1.0->google assistant sdk[samples])(4.0)
已满足要求:c:\program files(x86)\python38-32\lib\site软件包中的pyasn1模块>=0.2.1(来自google auth->google auth oauthlib[tool]>=0.1.0->google assistant sdk[samples])(0.2.7)
已满足要求:c:\program files(x86)\python38-32\lib\site软件包中的请求>=2.0.0(来自请求oauthlib>=0.7.0->google auth oauthlib[tool]>=0.1.0->google assistant sdk[samples])(2.22.0)
已满足要求:c:\program files(x86)\python38-32\lib\site软件包中的oauthlib>=3.0.0(来自请求oauthlib>=0.7.0->google auth oauthlib[tool]>=0.1.0->google assistant sdk[samples])(3.1.0)
已满足要求:c:\program files(x86)\python38-32\lib\site软件包中的pycparser(来自CFFI>=1.0->sounddevice=0.3.7;额外==“示例”->google assistant sdk[samples])(2.19)
收集协议>=3.6.0
使用缓存https://files.pythonhosted.org/packages/70/81/6d2dfdc9e8a377e151b1a481293dda7149c44c77428029645c978df22bc0/protobuf-3.11.0-py2.py3-none-any.whl
已满足要求:c:\program files(x86)\python38-32\lib\site软件包中的pyasn1>=0.1.3(来自rsa>=3.1.4->google auth->google auth oauthlib[tool]>=0.1.0->google assistant sdk[samples])(0.4.7)
已满足要求:c:\program files(x86)\python38-32\lib\site软件包中的chardet=3.0.2(来自请求>=2.0.0->请求oauthlib>=0.7.0->google auth oauthlib[tool]>=0.1.0->google助手sdk[samples])(3.0.4)
已满足要求:c:\program files(x86)\python38-32\lib\site软件包中的setuptools(来自protobuf>=3.6.0->googleapis common protos>=1.5.2->google assistant grpc==0.2.1;extra==“示例”->google assistant sdk[samples])(41.2.0)
安装收集的软件包:protobuf、googleapis common protos、grpcio、google assistant grpc、google assistant sdk
正在为googleapis公共协议运行setup.py安装。。。完成
正在运行grpcio的setup.py安装。。。错误
Requirement already satisfied: google-auth-oauthlib[tool]>=0.1.0 in c:\program files (x86)\python38-32\lib\site-packages (from google-assistant-sdk[samples]) (0.4.1)

Requirement already satisfied: sounddevice<0.4,>=0.3.7; extra == "samples" in c:\program files (x86)\python38-32\lib\site-packages (from google-assistant-sdk[samples]) (0.3.14)

Requirement already satisfied: futures<4,>=3.1.1; extra == "samples" in c:\program files (x86)\python38-32\lib\site-packages (from google-assistant-sdk[samples]) (3.1.1)

Collecting google-assistant-grpc==0.2.1; extra == "samples"
  Using cached https://files.pythonhosted.org/packages/4b/5d/50dbb8197961acf8a4339e8950e0110159456c4ef48234751d1b5f2e919b/google_assistant_grpc-0.2.1-py2.py3-none-any.whl

Requirement already satisfied: pathlib2<3,>=2.3.0; extra == "samples" in c:\program files (x86)\python38-32\lib\site-packages (from google-assistant-sdk[samples]) (2.3.5)

Requirement already satisfied: urllib3[secure]<2,>=1.21; extra == "samples" in c:\program files (x86)\python38-32\lib\site-packages (from google-assistant-sdk[samples]) (1.25.6)

Requirement already satisfied: tenacity<5,>=4.1.0; extra == "samples" in c:\program files (x86)\python38-32\lib\site-packages (from google-assistant-sdk[samples]) (4.12.0)

Requirement already satisfied: click<7,>=6.7; extra == "samples" in c:\program files (x86)\python38-32\lib\site-packages (from google-assistant-sdk[samples]) (6.7)

Requirement already satisfied: google-auth in c:\program files (x86)\python38-32\lib\site-packages (from google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]) (1.6.3)

Requirement already satisfied: requests-oauthlib>=0.7.0 in c:\program files (x86)\python38-32\lib\site-packages (from google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]) (1.2.0)

Requirement already satisfied: CFFI>=1.0 in c:\program files (x86)\python38-32\lib\site-packages (from sounddevice<0.4,>=0.3.7; extra == "samples"->google-assistant-sdk[samples]) (1.13.1)

Collecting googleapis-common-protos>=1.5.2
  Using cached https://files.pythonhosted.org/packages/eb/ee/e59e74ecac678a14d6abefb9054f0bbcb318a6452a30df3776f133886d7d/googleapis-common-protos-1.6.0.tar.gz

Collecting grpcio>=1.3.5
  Using cached https://files.pythonhosted.org/packages/e4/60/40c4d2b61d9e4349bc89445deb8d04cc000b10a63446c42d311e0d21d127/grpcio-1.25.0.tar.gz

Requirement already satisfied: six in c:\program files (x86)\python38-32\lib\site-packages (from pathlib2<3,>=2.3.0; extra == "samples"->google-assistant-sdk[samples]) (1.12.0)

Requirement already satisfied: idna>=2.0.0; extra == "secure" in c:\program files (x86)\python38-32\lib\site-packages (from urllib3[secure]<2,>=1.21; extra == "samples"->google-assistant-sdk[samples]) (2.8)

Requirement already satisfied: pyOpenSSL>=0.14; extra == "secure" in c:\program files (x86)\python38-32\lib\site-packages (from urllib3[secure]<2,>=1.21; extra == "samples"->google-assistant-sdk[samples]) (19.0.0)

Requirement already satisfied: cryptography>=1.3.4; extra == "secure" in c:\program files (x86)\python38-32\lib\site-packages (from urllib3[secure]<2,>=1.21; extra == "samples"->google-assistant-sdk[samples]) (2.8)

Requirement already satisfied: certifi; extra == "secure" in c:\program files (x86)\python38-32\lib\site-packages (from urllib3[secure]<2,>=1.21; extra == "samples"->google-assistant-sdk[samples]) (2019.9.11)

Requirement already satisfied: cachetools>=2.0.0 in c:\program files (x86)\python38-32\lib\site-packages (from google-auth->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]) (3.1.1)

Requirement already satisfied: rsa>=3.1.4 in c:\program files (x86)\python38-32\lib\site-packages (from google-auth->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]) (4.0)

Requirement already satisfied: pyasn1-modules>=0.2.1 in c:\program files (x86)\python38-32\lib\site-packages (from google-auth->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]) (0.2.7)

Requirement already satisfied: requests>=2.0.0 in c:\program files (x86)\python38-32\lib\site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]) (2.22.0)

Requirement already satisfied: oauthlib>=3.0.0 in c:\program files (x86)\python38-32\lib\site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]) (3.1.0)

Requirement already satisfied: pycparser in c:\program files (x86)\python38-32\lib\site-packages (from CFFI>=1.0->sounddevice<0.4,>=0.3.7; extra == "samples"->google-assistant-sdk[samples]) (2.19)

Collecting protobuf>=3.6.0
  Using cached https://files.pythonhosted.org/packages/70/81/6d2dfdc9e8a377e151b1a481293dda7149c44c77428029645c978df22bc0/protobuf-3.11.0-py2.py3-none-any.whl

Requirement already satisfied: pyasn1>=0.1.3 in c:\program files (x86)\python38-32\lib\site-packages (from rsa>=3.1.4->google-auth->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]) (0.4.7)

Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\program files (x86)\python38-32\lib\site-packages (from requests>=2.0.0->requests-oauthlib>=0.7.0->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]) (3.0.4)

Requirement already satisfied: setuptools in c:\program files (x86)\python38-32\lib\site-packages (from protobuf>=3.6.0->googleapis-common-protos>=1.5.2->google-assistant-grpc==0.2.1; extra == "samples"->google-assistant-sdk[samples]) (41.2.0)

Installing collected packages: protobuf, googleapis-common-protos, grpcio, google-assistant-grpc, google-assistant-sdk

Running setup.py install for googleapis-common-protos ... done

Running setup.py install for grpcio ... error

 ERROR: Command errored out with exit status 1:

command: 'C:\Program Files (x86)\Python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\91999\\AppData\\Local\\Temp\\pip-install-vnrp98y6\\grpcio\\setup.py'"'"'; __file__='"'"'C:\\Users\\91999\\AppData\\Local\\Temp\\pip-install-vnrp98y6\\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\91999\AppData\Local\Temp\pip-record-q8x2ji7q\install-record.txt' --single-version-externally-managed --compile
         cwd: C:\Users\91999\AppData\Local\Temp\pip-install-vnrp98y6\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] The system cannot find the file specified

  ----------------------------------------

ERROR: Command errored out with exit status 1: 'C:\Program Files (x86)\Python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\91999\\AppData\\Local\\Temp\\pip-install-vnrp98y6\\grpcio\\setup.py'"'"'; __file__='"'"'C:\\Users\\91999\\AppData\\Local\\Temp\\pip-install-vnrp98y6\\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\91999\AppData\Local\Temp\pip-record-q8x2ji7q\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.