Import "openai" could not be resolved

Hi, I can’t install openai executing pip install openai in any console
I’m just trying to run a Python app with Visual Studio 2022
which steps should I follow to do this? can you help me please?

You need to ensure you have the openai module installed to the same Python instance VS is using.

  1. Ensure that your env or the virtual environment you are using has opneai installed in it.
  2. Ensure that the openai version > 1.0. This type of initiation is not needed in the earlier versions