0
  • I am learning gpt fine-tuning

  • I successfully ran this command: pip install --upgrade openai

  • I couldn't run this command: export OPENAI_API_KEY="sk-xxxxxxxxxxxxxx"

  • Error: export : The term 'export' is not recognized as the name of a cmdlet, function, script file, or operable program.

  • So I ran this command instead: set OPENAI_API_KEY="sk-xxxxxxxxxxxxxx"

  • Also ran Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser

  • Now I'm trying to run openai tools fine_tunes.prepare_data -f C:\Users.....fine-tune-upload.xlsx

But it shows: error: unknown command 'tools'

Any idea? Please explain in beginner language!

1
  • Where did you get the idea that would work? All of the CLI examples in pypi.org/project/openai start with openai api ... Commented Mar 7, 2023 at 22:41

1 Answer 1

0

Use Linux to run the commands

Or

If you want to use it in Windows follow the below instruction:

Install WSL (Windows Subsystem for Linux) from Microsoft Store,

Then, Enable Windows Subsystem for Linux:

To enable it :

  • Open Start Menu and search for "Turn Windows features on or off"
  • Then scroll down and check Windows Subsystem for Linux Then you will asked to restart, After restarting Open CMD from the Start menu.

And write the following command wsl --install after installing it just write wsl command.

Finally, you can follow OpenAI instruction and they will work fine.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.