Unable to run the command Line interface (CLI) for openai

@carla @m-a.schenk
Thanks guys for engaging me. I finally figured it out. Putting this out there so that someone else can benefit.

Problem: “openai” is not recognized as an internal or external command, operable program or batch file.

Solution.
step 1. run “where openai” from the anaconda prompt. You will get a path to the scripts folder.
image

Step 2. Navigate to the folder using “cd . Make sure you remove the openai from the end.”
image

Step 3: Run “python openai …arguments” from this location.

6 Likes