Digital Farmer
Digital Farmer

Reputation: 2137

Import "google_auth_oauthlib.flow" could not be resolved

In VSCODE using these specifications:

pip 21.3.1 from C:\users\computador\appdata\local\programs\python\python39\lib\site-packages\pip (python 3.9)

I'm using this path for installation:

pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib

enter image description here

But when I try to add the flow import, it keeps saying could not be resolved, several videos use this model to work and none of them show this failure, what is happening and what can I do to solve this problem?

Upvotes: 5

Views: 10766

Answers (5)

sushantjoshi800
sushantjoshi800

Reputation: 1

Try this command run :

pip install google-auth-oauthlib

Upvotes: -2

Chagbert
Chagbert

Reputation: 783

If you have multiple Python environments (e.g., using virtualenv, conda, etc.), make sure that you're working in the correct environment where the package is installed. You can verify the Python environment being used by running: which python # On macOS/Linux where python # On Windows

Upvotes: 0

Adebola Odufuwa
Adebola Odufuwa

Reputation: 24

If you are using a virtual environment, ensure that it is activated, the package is installed within the virtual environment, and the interpreter configured in your text editor matches the virtual environment's interpreter.

Upvotes: 0

Addin Cui
Addin Cui

Reputation: 83

Directly run pip install google-api-python-client google-auth-httplib2 google-auth-oauthlib resolves this problem for me.

Upvotes: 3

Tirterra
Tirterra

Reputation: 716

Try pip uninstall google-auth-oauthlib and pip uninstall google-api-python-client google-auth-httplib2 google-auth-oauthlib then reinstall it with pip install google-api-python-client google-auth-httplib2 google-auth-oauthlib

Upvotes: 5

Related Questions