From 8636b317aea43442ab2eefe20f6bb6a8d9b56e4b Mon Sep 17 00:00:00 2001 From: Joseph Socarras <37901304+jsocarras@users.noreply.github.com> Date: Mon, 6 Mar 2023 11:35:56 -0600 Subject: [PATCH 1/2] Modified command for installing dependencies Modified command for installing dependencies to resolve the error message: 'no matches found: openai[embeddings]' --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5dbd51a627..88656ddeb6 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,11 @@ Install dependencies for [`openai.embeddings_utils`](openai/embeddings_utils.py) pip install openai[embeddings] ``` +If you receive an error message stating: _no matches found: openai[embeddings]_, try running: +```sh +pip install openai"[embeddings]" +``` + Install support for [Weights & Biases](https://wandb.me/openai-docs): ``` @@ -267,7 +272,7 @@ async def create_completion(): ``` To make async requests more efficient, you can pass in your own -``aiohttp.ClientSession``, but you must manually close the client session at the end +``aiohttp.ClientSession``, but you must manually close the client session at the end of your program/event loop: ```python From ae1d5a4a9614fe25f78c3bff86b1af68dcf66fef Mon Sep 17 00:00:00 2001 From: Joseph Socarras <37901304+jsocarras@users.noreply.github.com> Date: Mon, 6 Mar 2023 12:11:00 -0600 Subject: [PATCH 2/2] Modified commands for installing dependencies If you encounter a "no matches found" error message while installing dependencies, try running the modified dependency installation code --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 88656ddeb6..3f2da28d73 100644 --- a/README.md +++ b/README.md @@ -42,12 +42,22 @@ Install support for [Weights & Biases](https://wandb.me/openai-docs): pip install openai[wandb] ``` +If you receive an error message stating: _no matches found: openai[wandb]_, try running: +```sh +pip install openai"[wandb]" +``` + Data libraries like `numpy` and `pandas` are not installed by default due to their size. They’re needed for some functionality of this library, but generally not for talking to the API. If you encounter a `MissingDependencyError`, install them with: ```sh pip install openai[datalib] ```` +If you receive an error message stating: _no matches found: openai[datalib]_, try running: +```sh +pip install openai"[datalib]" +``` + ## Usage The library needs to be configured with your account's secret key which is available on the [website](https://platform.openai.com/account/api-keys). Either set it as the `OPENAI_API_KEY` environment variable before using the library: