Reputation: 2137
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
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
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
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
Reputation: 83
Directly run pip install google-api-python-client google-auth-httplib2 google-auth-oauthlib
resolves this problem for me.
Upvotes: 3
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