6

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?

4
  • 1
    Try pip uninstall google-auth-oauthlib and pip uninstall google-api-python-client google-auth-httplib2 google-auth-oauthlib then reinstall it. Commented Nov 16, 2021 at 17:15
  • Hi @Tirterra It worked perfectly, so simple and it didn't come to my mind to uninstall and reinstall. Thank you very much! Commented Nov 16, 2021 at 17:21
  • 1
    no problem, sometimes the answer is so obvious that we can't even see it. Could you please change the status to resolved ? Thanks Commented Nov 16, 2021 at 18:17
  • Hi @Tirterra Create an answer so I can add the checked to it as a solution, without it I can't close the question. Commented Nov 16, 2021 at 18:32

6 Answers 6

6

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

Sign up to request clarification or add additional context in comments.

Comments

4

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

Comments

0

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.

Comments

0

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

Comments

0

I also encountered this issue. I tried all of the methods provided here, but nothing worked. The packages were being installed under Python 3.13, but my VS Code interpreter was set to Python 3.12. Once I changed my interpreter to Python 3.13, everything worked.

To change the interpreter, press Ctrl+Shift+P in VS Code and type Python: Select Interpreter, then select the Python 3.13 interpreter.

Comments

-3

Try this command run :

pip install google-auth-oauthlib

1 Comment

How is this answer different from the other two, which explain installing "google-auth-oauthlib" in more detail?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.