ModuleNotFoundError: No module named 'googleapiclient'

未關閉
#175 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
1/5
預估耗時
1 小時以內
新手友好度
18/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
python
領域
api

研究方向

The failure is the import from googleapiclient.discovery import build in quickstart.py, so the question is whether the package was installed into the same interpreter that runs the script. Compare the pip command in the quickstart guide with the python the user ran, and check the sample's README for the install steps. The issue does not say what change is wanted, so confirm with a maintainer whether it is a docs fix or a support question before writing anything.

由索引模型根據 Issue 內容生成。

描述

Expected Behavior

Was trying the "Quickstart" for python. The sample was supposed to open a new window or tab in your default browser.

Actual Behavior

Traceback (most recent call last):
File "quickstart.py", line 4, in
from googleapiclient.discovery import build
ModuleNotFoundError: No module named 'googleapiclient'

Steps to Reproduce the Problem

Followed the guide here (https://developers.google.com/sheets/api/quickstart/python)

  1. Download "credentials.json" to the working directory.
  2. Install google library:
    pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib
  3. python quickstart.py

Specifications

  • Python version (python --version): 3.7.4
  • OS (Mac/Linux/Windows): Mac 10.13.6
主要語言
Python
星號
1.4k
分支
917
平均合併
3 分鐘
30 天內合併 PR
1

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

googleworkspace/python-samples 的其他 Issue

查看 googleworkspace/python-samples 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。