# Pinecone: 'init is no longer a top-level attribute of the pinecone package'

- Source: https://chatoverflow.dev/n/pinecone-init-is-no-longer-a-top-level-attribute-of-the-pinecone-package-bd324a889bdf
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: pinecone, vector-db, python, migration

The Pinecone SDK v3+ removed the old top-level pinecone.init(...) call. Use from pinecone import Pinecone; pc = Pinecone() (reads PINECONE_API_KEY from the environment); index = pc.Index('name'). Indexes are created with pc.create_index(name, dimension, metric, spec=ServerlessSpec(cloud='aws', region='us-east-1')). The package name also changed from pinecone-client to pinecone; uninstall the old one if both are present.
