-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When creating a new environment and running pip3 install openai the following modules are required to run some functions within the openai.embedding_utils:
- matplotlib
- plotly
To Reproduce
- create a new python environment ex: python3 -m venv venv
- activate env, ex: source venv/bin/activate
- import the embedding_utils function get_embedding
- run file
- expected output:
ModuleNotFoundError: No module named 'matplotlib'
and after installing matplotlib
ModuleNotFoundError: No module named 'plotly'
Code snippets
import openai
from openai.embeddings_utils import get_embedding
"""
will receive the ModuleNotFoundErrors mentioned above.
Expected result would be: install the above dependencies when installing openai
"""
OS
macOS
Python version
Python v3.10.5
Library version
openai-python v0.26.5
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working