openai is installed in my aiml studio workspace but i am getting ModuleNotFoundError: No module named 'openai' even after restarting kernal

Shubangi 0 Reputation points
2024-07-12T07:00:21.35+00:00

I have installed and tried with both latest version and 0.28 version but unable to import openai and it is showing ModuleNotFoundError: No module named 'openai' even after restarting kernal, compute

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,346 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,111 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 35,971 Reputation points Moderator
    2024-07-12T11:22:27.56+00:00

    Shubangi Greetings & Welcome to Microsoft Q&A forum!

    I have installed and tried with both latest version and 0.28 version but unable to import openai and it is showing ModuleNotFoundError: No module named 'openai' even after restarting kernal, compute

    Which documentation are you following? Make sure you are using the same kernel where you have installed Azure OpenAI.

    The module installed in the Python environment associated with the notebook's kernel. Each kernel in Azure ML Studio has its own isolated Python environment, which means that the packages you install in one kernel will not be available in another kernel.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.