Not able to connect with DB from google colab

Hi there - I am using the code below to connect with Pinecone from colab notebook but cannot connect. Please assist.

!pip3 install -U pinecone[grpc] -q or !pip install “pinecone[grpc]” --upgrade -q
from pinecone.grpc import PineconeGRPC as Pinecone

api_key = os.environ.get(‘PINECONE_API_KEY’)

Use the API key to initialize the Pinecone client

pc = Pinecone(api_key=api_key)

getting below error:

ModuleNotFoundError: No module named ‘pinecone.exceptions.exceptions’; ‘pinecone.exceptions’ is not a package

Hi @pbprashantbaliyan. Welcome to the Pinecone community!

Are you using one of our notebooks? If so, please provide a link and I’ll dig into it.

Otherwise, the first few steps of our Quickstart notebook should help you get this right.

Best,
Jesse