Helps migrate deprecated pinecone-client package to the new pinecone package, ensuring clean removal and proper installation
This skill helps you migrate from the deprecated `pinecone-client` package to the new `pinecone` package safely and correctly.
The official Pinecone Python package has been renamed from `pinecone-client` to `pinecone`. This migration is critical because having both packages installed simultaneously can cause confusing interactions and conflicts.
When a user needs to migrate from `pinecone-client` to `pinecone`, follow these steps:
First, verify which Pinecone packages are currently installed:
```bash
pip list | grep pinecone
```
Document what's installed so the user understands their starting point.
Ask the user if they are using gRPC functionality with Pinecone. This determines which installation command to use later.
Uninstall the deprecated `pinecone-client` package completely:
```bash
pip uninstall pinecone-client -y
```
**CRITICAL:** This must be done before installing the new package to avoid conflicts.
Install the appropriate version of the new package:
**For standard installation:**
```bash
pip install pinecone
```
**For installation with gRPC support:**
```bash
pip install "pinecone[grpc]"
```
Guide the user to update their Python code. The package name in import statements should be checked:
**Old imports (may need updating):**
```python
import pinecone_client
```
**New imports:**
```python
import pinecone
```
Note: If imports were already using `import pinecone`, they may not need changes, but the user should verify functionality.
Direct the user to review potential breaking changes:
Ask if they need help understanding or implementing any specific changes documented there.
Remind the user to update their dependency management files:
Run a verification check:
```bash
pip show pinecone
```
Confirm the package is installed correctly and note the version number.
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/pinecone-client-migration-assistant/raw