I keep getting these errors in python trying to use the gemini model, pictured below, and really stumped as I've followed the pip install and google auth steps and tried doing it both with and without a virtual env but haven't been able to resolve. I also tried it in node.js, in which it worked perfectly, but I wanted to use python to build a project with this. If anyone knows how to fix this, thanks in advance!
Hi @rohankansal,
Welcome to Google Cloud Community!
The module "vertexai.generative_models" provides the Python interface for interacting with Vertex AI's Generative AI models and it seems that this is missing from your library. You also mentioned that you have already installed the Vertex AI SDK by running its pip command. With this, could you try verifing the installation by running the following code:
import vertexai
from vertexai.generative_models import TextGenerationModel
from vertexai.generative_models import TextGenerationModel
# or
from vertexai.generative_models import ImageGenerationModel