Hi All,
When I attempted to install ‘pinecone’ I received the error “could not find a version that satisfies the requirement pinecone”
So instead, I installed pinecone-client
Here is my code:
from langchain.vectorstores import pinecone
pinecone.init(api_key=“API_KEY”, environment=“asia-northeast1-gcp”)
I receive the following error:
File “C:\Users\Luke\PycharmProjects\Langchainv1\Langchain_Pinecone.py”, line 2, in
pinecone.init(api_key=“API_KEY”, environment=“asia-northeast1-gcp”)
AttributeError: module ‘langchain.vectorstores.pinecone’ has no attribute ‘init’
Does this error have anything to do with the fact that I was unable to install pinecone but installed pinecone-client? That doesnt appear to be the case using Pinecones documentation: https://docs.pinecone.io/docs/python-client
I appreciate any help. I have reinstalled pinecone-client and am a bit stumped.