原因
openai库版本过旧
解决办法(二选一)
pip install -U openai
- 下载安装包放入你的项目根目录下,(openai · PyPI)
改名格式zip为whl(即:openai-0.27.0-py3-none-any.zip
→openai-0.27.0-py3-none-any.whl
)
终端执行pip install openai-0.27.0-py3-none-any.whl
目的就是更新你的openai,选择其中一种办法即可。
注意:openai-0.27.0 版本,需要python3.7.1 以及以上的版本才能安装。3.7.0 不行
如果你的Python版本过低,请安装高版本的python程序
- 39 AttributeError ChatCompletion attribute 办法39 attributeerror chatcompletion attribute 39 quot attributeerror attribute 39 attributeerror attribute nonetype 39 attributeerror tensorflow attribute 39 attributeerror antialias attribute 39 attributeerror attribute copy_src 39 attributeerror attribute深度 39 attributeerror attribute module 39 attributeerror attribute模块 39 attributeerror dict_values attribute