Pinecone.init( ^^^^^^^^^^^^^ AttributeError: partially initialized module 'pinecone' has no attribute 'init' (most likely due to a circular import)

Hi everyone this error occures when i run my code in VS code or in Pycharm

In google colab it works well
error is it this portion of my code

import pinecone
api_key=pinecone_api_key, # find at
environment=pinecone_environment, # next to api key in console

This usually happens if you have more than one module named “pinecone” in your path. I suggest using virtual environments to avoid the issue entirely.