Common errors
Error: Cannot import name 'Pinecone' from 'pinecone'
Problem
When using an older version of the Python client (earlier than 3.0.0), trying to import the Pinecone
class raises the following error:
console
ImportError: cannot import name 'Pinecone' from 'pinecone'
Solution
Upgrade the client version and try again:
Shell
# If you're interacting with Pinecone via HTTP requests, use:
pip install pinecone-client --upgrade
Shell
# If you're interacting with Pinecone via gRPC, use:
pip install "pinecone-client[grpc]" --upgrade