Skip to content

No module found OpenAI #6

Answered by iSiddharth20
mjerk asked this question in Q&A
Discussion options

You must be logged in to vote

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 command pip 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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by iSiddharth20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants