cancel
Showing results for 
Search instead for 
Did you mean: 
Khoros Community Forums Support (Not for Databricks Product Questions)
Please use this forum to alert the Community administrators to issues with the Khoros platform and moderation concerns. This is not a forum for Databricks product questions.
cancel
Showing results for 
Search instead for 
Did you mean: 

import openai | challenges

Carl_B
New Contributor II

Hello World,

I am facing some challenges running OpenAI on Databricks using Azure. I can easily pip install openai.

However, problems start once I run the python line: import openai. After that, I can a series of errors and never ending error messages.

Let me know if you have come across this problem and have been able to solve for it. Thanks in advance.

C

1 REPLY 1

User16611530679
Databricks Employee
Databricks Employee

Hi @Carl_B , Good Day!
I understand that you are trying to import the OpenAI client but that fails. However, can you please try installing as specified below and let us know how it goes? 

 

!pip install --upgrade openai
dbutils.library.restartPython()

If the issue persists, please share the DBR version and error that you are encountering to review it.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now