No module found OpenAI #6
-
Exception has occurred: ModuleNotFoundError |
Beta Was this translation helpful? Give feedback.
Answered by
iSiddharth20
Sep 7, 2024
Replies: 1 comment
-
Hello @mjerk Problem:
Solution:You can install the Additional Info:You will also need an OpenAI API Key, which you can get from here. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
iSiddharth20
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @mjerk
Problem:
ModuleNotFoundError
signifies that the required module/package/library is not installed or cannot be imported.Additionally
No module named ...
highlights the missing module,openai
in this case.Solution:
You can install the
openai
module using the commandpip install openai
(source)Additional Info:
You will also need an OpenAI API Key, which you can get from here.
This key will need to be updated on
Line 3
in this file in the codebase for the project to function as desired.