Skip to content

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

@LearningGp

Description

@LearningGp

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

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions