Skip to main content
Pinecone Docs

Search documentation

Type to search this documentation.

On this pageOverview

Error: Cannot import name 'Pinecone' from 'pinecone'

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.

When using an older version of the Python SDK (earlier than 3.0.0), trying to import the Pinecone class raises the following error:

console
ImportError: cannot import name 'Pinecone' from 'pinecone'

Upgrade the SDK version and try again:

Shell
# If you're interacting with Pinecone via HTTP requests, use:
pip install pinecone --upgrade
Shell
# If you're interacting with Pinecone via gRPC, use:
pip install "pinecone[grpc]" --upgrade
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu