在Windows 10上安装Google助手时出错

时间:2017-10-18 02:01:18

标签: installation google-assistant-sdk

我跟着this page在我的Windows 10 PC上安装了Google智能助理 当我运行此命令时:

py -m pip install google-assistant-sdk[samples]

我收到错误以下错误!请帮忙!!!

Collecting pycparser (from CFFI>=1.0->sounddevice==0.3.7; extra == "samples"->google-assistant-sdk[samples])
  Using cached pycparser-2.18.tar.gz
Collecting protobuf>=3.3.0 (from grpcio>=1.3.5->google-assistant-grpc==0.0.2; extra == "samples"->google-assistant-sdk[samples])
  Using cached protobuf-3.4.0-py2.py3-none-any.whl
Collecting idna<2.7,>=2.5 (from requests>=2.0.0->requests-oauthlib>=0.7.0->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples])
  Using cached idna-2.6-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests>=2.0.0->requests-oauthlib>=0.7.0->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples])
  Using cached chardet-3.0.4-py2.py3-none-any.whl
Requirement already satisfied: setuptools in c:\program files (x86)\python36-32\lib\site-packages (from protobuf>=3.3.0->grpcio>=1.3.5->google-assistant-grpc==0.0.2; extra == "samples"->google-assistant-sdk[samples])
Installing collected packages: certifi, urllib3, idna, chardet, requests, oauthlib, requests-oauthlib, pyasn1, pyasn1-modules, rsa, cachetools, six, google-auth, click, google-auth-oauthlib, pycparser, CFFI, sounddevice, protobuf, grpcio, googleapis-common-protos, google-assistant-grpc, monotonic, tenacity, google-assistant-sdk
Exception:
Traceback (most recent call last):
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\pip\basecommand.py", line 215, in main
    status = self.run(options, args)
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\pip\commands\install.py", line 342, in run
    prefix=options.prefix_path,
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\pip\req\req_set.py", line 784, in install
    **kwargs
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\pip\req\req_install.py", line 851, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\pip\req\req_install.py", line 1064, in move_wheel_files
    isolated=self.isolated,
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\pip\wheel.py", line 345, in move_wheel_files
    clobber(source, lib_dir, True)
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\pip\wheel.py", line 316, in clobber
    ensure_dir(destdir)
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\pip\utils\__init__.py", line 83, in ensure_dir
    os.makedirs(path)
  File "C:\Program Files (x86)\Python36-32\lib\os.py", line 220, in makedirs
    mkdir(name, mode)
PermissionError: [WinError 5] Access is denied: 'C:\\Program Files (x86)\\Python36-32\\Lib\\site-packages\\certifi'

1 个答案:

答案 0 :(得分:0)

尝试在管理员模式下运行cmd,方法是点击Windows密钥,输入cmd,右键单击,然后点击以管理员身份运行。