module 'google.generativeai' has no attribute 'GenerativeModel',同时一直报cookies无效
syshack opened this issue · comments
syshack commented
最新版本,报module 'google.generativeai' has no attribute 'GenerativeModel',同时一直报cookies无效。
麻烦帮忙看看咋回事
Jason Huang commented
用你跑 bot 的 python 执行一下这条命令: python -m pip show google-generativeai
,检查一下 google-generativeai
的版本。
目前最新的是 0.3.1,我的环境下也是这个版本,可以正常 import。
>>> from google.generativeai import GenerativeModel
>>>
cookies 无效的具体报错是什么?你的 cookie 是怎么获取的?麻烦提供一下详细信息。