generative-ai icon indicating copy to clipboard operation
generative-ai copied to clipboard

[Bug]: ModuleNotFoundError: No module named 'gemini'

Open LearningGp opened this issue 1 month ago • 1 comments

File Name

llmevalkit

What happened?

enviroment:

  • Python 3.10.4
  • pip 22.0.4

I followed the llmevalkit README to run the demo, with all previous steps working successfully. However, I encountered an error during the Prompt Optimization step: ModuleNotFoundError: No module named 'gemini'. When attempting to install 'gemini', I received another error: ModuleNotFoundError: No module named 'pip.req'.

After googling, I found this is due to version compatibility issues where pip < 10 required the 'pip.req' module. To resolve it, some sources suggest downgrading pip to 9.0.3. However, this would require downgrading Python (e.g., pip 9.0.3 may only support Python ≤3.7), which could disrupt other steps in the workflow.

Please advise: What Python and pip versions are officially recommended for running this demo to avoid dependency conflicts while maintaining compatibility with all steps?

Relevant log output


Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

LearningGp avatar Oct 28 '25 12:10 LearningGp

Could you please take a look at this issue and advise on the recommended Python version and its corresponding pip version?@kat-litinsky

LearningGp avatar Oct 29 '25 02:10 LearningGp