ModuleNotFoundError: No module named 'googleapiclient'

Ouverte
#175 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
1/5
Temps estimé
Moins d'une heure
Accessibilité débutants
18/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
python
Domaine
api

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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
Langage dominant
Python
Étoiles
1.4k
Forks
917
Merge moyen
3 min
PR mergées (30 j)
1

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de googleworkspace/python-samples

Toutes les issues de googleworkspace/python-samples

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.