The generative-ai package you've shared is marked as inactive.
And the Homepage is a google repo on github that is marked as DEPRECATED.
I suggest you restart your efforts on a project that is still maintained such as https://github.com/google-gemini/gemini-api-quickstart (latest commit yesterday)