ImportError: cannot import name 'Pinecone' from 'pinecone' (unknown location)

ImportError: cannot import name ‘ServerlessSpec’ from ‘pinecone’ (unknown location)

What Pinecone version are you using? Try upgrading if you’re using an older version

I have tried to upgrade the version to the latest version, but it still shows that.