题意:怎样使用 pip install 命令解决 'Import openai could not be resolved' 错误 (Pylance)
问题背景:
I feel like I'm asking a dumb question, but I've looked at multiple StackOverflow threads and articles online already but still haven't fixed my problem.
我觉得自己在问一个愚蠢的问题,但我已经查看了多个 StackOverflow 讨论帖和网上的文章,仍然没能解决我的问题。
I'm trying to use the OpenAI Python library to train a new model, but even after running multiple variations of the pip install openai
command, VS Code and Powershell keep returning this:
我正在尝试使用 OpenAI 的 Python 库来训练一个新模型,但即使运行了多种版本的 `pip install openai` 命令,VS Code 和 Powershell 仍然返回以下信息:
Import "openai" could not be resolvedPylancereportMissin