Import "openai" could not be resolvedPylance

I am getting the above issue when trying to import openai.

I have confirmed it is installed on the correct virtual environment and that visual studio code is using the correct interpreter.

I am having no issues with any other imports only openai.

I am using python 3.8.1 and the latest version of openai 1.3.6

Any help would be much appreciated

from openai import OpenAI

1 Like

Some more context would be helpful, can you provide a snippet of your code?

I have added the code snippet above. Not able to do anything else as I can’t import openai