Problem
When using an older version of the Python SDK (earlier than 3.0.0), trying to import thePinecone class raises the following error:
console
Solution
Upgrade the SDK version and try again:Shell
Shell
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Fix the Python ImportError ‘cannot import name Pinecone from pinecone’ by upgrading the Pinecone Python SDK to 3.0.0 or later, with or without gRPC.
Pinecone class raises the following error:
ImportError: cannot import name 'Pinecone' from 'pinecone'
# If you're interacting with Pinecone via HTTP requests, use:
pip install pinecone --upgrade
# If you're interacting with Pinecone via gRPC, use:
pip install "pinecone[grpc]" --upgrade
Was this page helpful?