Repository: confident-ai/deepeval
Issue: ModuleNotFoundError: No module named 'datasets' in `deepeval.scorer`
Root cause: Environment Incompatibility

**Describe the bug**

I'm running Deepeval version 2.5.9 on GitHub Actions. The error seems to occur with deepeval versions above 2.5.6.

```
________________ ERROR collecting tests/generator/test_rouge.py ________________
ImportError while importing test module '/home/runner/work/chatbot-service/chatbot-service/packages/evaluation/tests/generator/test_rouge.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
packages/evaluation/tests/generator/test_rouge.py:9: in <module>
    from chatbot_evaluation.metrics import RougeMetric
/opt/hostedtoolcache/Python/3.12.9/x[64](https://github.com/wswsorg/chatbot-service/actions/runs/13931117059/job/38988210196#step:11:65)/lib/python3.12/site-packages/chatbot_evaluation/metrics/__init__.py:2: in <module>
    from .rouge import RougeMetric
/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/chatbot_evaluation/metrics/rouge.py:2: in <module>
    import deepeval.scorer
/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/deepeval/scorer/__init__.py:1: in <module>
    from .scorer import Scorer
/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/deepeval/scorer/scorer.py:7: in <module>
    from deepeval.benchmarks.schema import NumberSchema
/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/deepeval/benchmarks/__init__.py:1: in <module>
    from .big_bench_hard.big_bench_hard import BigBenchHard
/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/deepeval/benchmarks/big_bench_hard/big_bench_hard.py:6: in <module>
    from deepeval.benchmarks.base_benchmark import DeepEvalBaseBenchmark
/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/deepeval/benchmarks/base_benchmark.py:10: in <module>
    class DeepEvalBaseBenchmark(ABC, Generic[T]):
/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/deepeval/benchmarks/base_benchmark.py:11: in DeepEvalBaseBenchmark
    from datasets import Dataset
E   ModuleNotFoundError: No module named 'datasets'
```

**To Reproduce**

On Ubuntu with versions 2.5.6 to 2.5.9

```bash
python3 -m venv venv
source activate venv/bin/activate
pip install deepeval==2.5.9
python -c "import deepeval.scorer"
```

**Expected behavior**

This worked fine before without a `ModuleNotFoundError`

It works in version 2.5.5

```
$ pip list | grep deepeval
deepeval                                 2.5.5
$ python -c "import deepeval.scorer"
/home/my_username/venv/lib/python3.12/site-packages/deepeval/__init__.py:54: UserWarning: You are using deepeval version 2.5.5, however version 2.5.9 is available. You should consider upgrading via the "pip install --upgrade deepeval" command.
  warnings.warn(
```


@JoeMountWSWS since the dataset module is pretty big we made it an optional depdency, please install it to use it

> [@JoeMountWSWS](https://github.com/JoeMountWSWS) since the dataset module is pretty big we made it an optional depdency, please install it to use it

Ohhhh, thanks @penguine-ip. I didn't realise that `datasets` was an [external dependency](https://pypi.org/project/datasets/) since https://github.com/confident-ai/deepeval/commit/c3e32cd7800196c210cba0fa0ba763b80d297932.

Resolved:

```bash
pip install datasets
python -c "import deepeval.scorer"
C:\Users\joesh\venv\Lib\site-packages\deepeval\__init__.py:54: UserWarning: You are using deepeval version 2.5.9, however version 2.6.3 is available. You should consider upgrading via the "pip install --upgrade deepeval" command.
  warnings.warn(
```