当前位置:首页 » 《休闲阅读》 » 正文

I still get the “No module named ‘openai.embeddings_utils‘;“ error after upgraded the OpenAI package

1 人参与  2024年10月18日 11:20  分类 : 《休闲阅读》  评论

点击全文阅读


题意:OpenAI API 错误:为什么在我升级了 OpenAI 包和 Python 之后,仍然收到 "没有名为 'openai.embeddings_utils' 的模块" 的错误?

问题背景:

I've been trying to play around with OpenAI embeddings, but got quickly stuck on environment configuration. I've looked at other similar problems questions here and have followed the answers posted there, but I'm still being thrown an error that package does not exist.

我一直在尝试使用OpenAI的嵌入功能,但很快就在环境配置上遇到了困难。我已经查看了这里其他类似问题的提问,并按照那里提供的答案进行了操作,但我仍然收到一个错误,提示该包不存在。

The code is primitive:        代码很原始:

import pandas as pdimport openaifrom openai.embeddings_utils import get_embedding

点击全文阅读


本文链接:http://zhangshiyu.com/post/173527.html

<< 上一篇 下一篇 >>

  • 评论(0)
  • 赞助本站

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

关于我们 | 我要投稿 | 免责申明

Copyright © 2020-2022 ZhangShiYu.com Rights Reserved.豫ICP备2022013469号-1