MetaGPT icon indicating copy to clipboard operation
MetaGPT copied to clipboard

作者我遇到这个错误我需要怎么解决,当我更新到3.5.0.post1的时候会出现ModuleNotFoundError: No module named 'google.generativeai' 但是当我下载google.generativeai的时候他又会给我自动升级到 4.25.3然后就出现这个错误

Open yxl23 opened this issue 2 years ago • 10 comments

image

yxl23 avatar Mar 26 '24 08:03 yxl23

How do I need to solve this error? When I update to 3.5.0. post1, there will be a ModuleNotFoundError: No module named 'Google. generateai'. However, when I download Google. generateai, it will automatically upgrade to 4.25.3 and then this error will appear

yxl23 avatar Mar 26 '24 09:03 yxl23

image

yxl23 avatar Mar 26 '24 09:03 yxl23

What is your installation command? Try this?

git clone https://github.com/geekan/MetaGPT && cd MetaGPT && pip install --upgrade -e .

geekan avatar Mar 26 '24 12:03 geekan

we use google-generativeai==0.4.1.

better629 avatar Mar 26 '24 13:03 better629

我按照你的命令执行了,但是还是报这个错 image

yxl23 avatar Mar 27 '24 02:03 yxl23

@yxl23 I suggest providing a more complete execution command, environment, output, etc., so that we may be able to help you locate the problem

geekan avatar Mar 27 '24 02:03 geekan

解决那个问题了,现在又出现这个问题 image

yxl23 avatar Mar 27 '24 02:03 yxl23

image

yxl23 avatar Mar 27 '24 02:03 yxl23

你可以访问下截图中的 faq url,其中有描述解决方法

geekan avatar Mar 27 '24 07:03 geekan

这个看着像是网络不通。如果要配代理,config2.yaml里要这样配置:

llm:
  api_key: "A....I"
  model: "gemini-pro" # https://ai.google.dev/models/gemini
  api_type: "gemini"
  proxy: "http://xx:xx"

iorisa avatar Mar 27 '24 08:03 iorisa