尝试微调GPT3时出现缺少pandas错误

5anewei6  于 2023-04-07  发布在  其他
关注(0)|答案(1)|浏览(374)

我使用以下命令:
openai tools fine_tunes.prepare_data -f ./data.jsonl
我得到了以下错误:

Analyzing...
Traceback (most recent call last):
  File "/Users/jyothiraditya/mambaforge/bin/openai", line 8, in <module>
    sys.exit(main())
  File "/Users/jyothiraditya/mambaforge/lib/python3.10/site-packages/openai/_openai_scripts.py", line 63, in main
    args.func(args)
  File "/Users/jyothiraditya/mambaforge/lib/python3.10/site-packages/openai/cli.py", line 586, in prepare_data
    df, remediation = read_any_format(fname)
  File "/Users/jyothiraditya/mambaforge/lib/python3.10/site-packages/openai/validators.py", line 477, in read_any_format
    assert_has_pandas()
  File "/Users/jyothiraditya/mambaforge/lib/python3.10/site-packages/openai/datalib.py", line 56, in assert_has_pandas
    raise MissingDependencyError(PANDAS_INSTRUCTIONS)
openai.datalib.MissingDependencyError: 

OpenAI error: 

    missing `pandas` 

This feature requires additional dependencies:

    $ pip install openai[datalib]

我尝试重新安装datalib使用:pip install --upgrade openai openai"[datalib]"但它没有工作
我尝试手动安装pandas:pip install pandas但它也没有工作
如何解决此错误?

vfhzx4xs

vfhzx4xs1#

如果你正在重新编译和安装python3,那么你的python3安装可能有问题,导致pandas出现问题。你可以写一个简单的调用pandas的例子,会有一个详细的错误消息。

相关问题