Hi, I just got access to Pinecone and is following this guide here:

But I can’t continue further than Step 2 as I get the following error:

  import pinecone
  ModuleNotFoundError: No module named 'pinecone'

This is my following code which should be working just fine:

  import os
  import pinecone

Any help for this question is greatly appreciated. Thanks!

Hi @ascernis

in most cases this error comes up when the needed lib or module is not installed. Did you do the step 1 in your environment?

Install Pinecone client ( pip install pinecone-client)

If you are using python and any form of virtual envs, make sure you are running this command in the env you will be running Pinecone code in :slight_smile:

For any more help, do not hesitate to ping me.

Hope this helps

Hi, I am having the same problem. I installed the pinecone-client as you can see from the screenshot below.

I’m also getting the same error when importing pinecone and after having installed pinecone via “pip install pinecone-client” (I’m using python 3.9)

Update: I upgraded to python 3.10 and it worked. Not sure why the 3.9 version doesn’t work

I’m using the Pine cone client and Python 3.11.7 (Anaconda) and I still get the same error.

pip install pinecone-client
from pinecone import Pinecone
pc = Pinecone(api_key=‘my-api-key’)

i am getting error as pinecone not defined

If you are still facing the issue run !pip3 install pinecone-client