langchain-ai / langchain-google

MIT License
117 stars 149 forks source link

Unable to install langchain-google-genai using Poetry #608

Open Satwikram opened 6 days ago

Satwikram commented 6 days ago

I'm trying to install langchain-google-genai using Poetry, and I'm getting this error:

Using version ^2.0.5 for langchain-google-genai

Updating dependencies Resolving dependencies... (0.0s)

Because no versions of langchain-google-genai match >2.0.5,<3.0.0 and langchain-google-genai (2.0.5) depends on google-generativeai (>=0.8.0,<0.9.0), langchain-google-genai (>=2.0.5,<3.0.0) requires google-generativeai (>=0.8.0,<0.9.0). So, because accesible forums depends on both google-generativeai (^0.5.4) and langchain-google-genai (^2.0.5), version solving failed.

lkuligin commented 5 days ago

do you install on a clean environment, or do you have your own .toml project? It looks like the latter, please, check that you don't fix the dependency google-generativeai (^0.5.4) there.

Satwikram commented 5 days ago

So, I uninstalled google-generativeai and tried installing it again, and it worked.