Repository: huggingface/evaluate
Issue: ImportError: To be able to use evaluate-metric/rouge, you need to install the following dependencies['nltk'] using 'pip install # Here to have a nice missing dependency error message early on' for instance'
Root cause: Environment Incompatibility

I am now doing [summarization tutorial](https://huggingface.co/docs/transformers/tasks/summarization) task. 
however, I encounter when I run
````python
import evaluate
rouge = evaluate.load("rouge", use_aggregator=False)
````

The error message is below:
````
Traceback (most recent call last):
  File "/hdd/hdd2/baek26/onboarding/Summary/billsum.py", line 36, in <module>
    rouge = evaluate.load("rouge", use_aggregator=False)
  File "/home/guest-bje/.local/share/virtualenvs/onboarding-kyCypCas/lib/python3.9/site-packages/evaluate/loading.py", line 748, in load
    evaluation_module = evaluation_module_factory(
  File "/home/guest-bje/.local/share/virtualenvs/onboarding-kyCypCas/lib/python3.9/site-packages/evaluate/loading.py", line 680, in evaluation_module_factory
    raise e1 from None
  File "/home/guest-bje/.local/share/virtualenvs/onboarding-kyCypCas/lib/python3.9/site-packages/evaluate/loading.py", line 633, in evaluation_module_factory
    return HubEvaluationModuleFactory(
  File "/home/guest-bje/.local/share/virtualenvs/onboarding-kyCypCas/lib/python3.9/site-packages/evaluate/loading.py", line 489, in get_module
    local_imports = _download_additional_modules(
  File "/home/guest-bje/.local/share/virtualenvs/onboarding-kyCypCas/lib/python3.9/site-packages/evaluate/loading.py", line 265, in _download_additional_modules
    raise ImportError(
ImportError: To be able to use evaluate-metric/rouge, you need to install the following dependencies['nltk'] using 'pip install # Here to have a nice missing dependency error message early on' for instance'
`````

I visited this [issue](https://github.com/huggingface/evaluate/issues/434), but couldn't solve it.

My Environment is as pipfile below:
`````
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
gymnasium = "*"
matplotlib = "*"
tqdm = "*"
transformers = "*"
datasets = "*"
evaluate = "*"
rouge-score = "*"
nltk = "*"
torch = "==1.12.1"
torchvision = "==0.13.1"
torchaudio = "==0.12.1"
accelerate = "*"

[dev-packages]

[requires]
python_version = "3.9"
python_full_version = "3.9.2"
````

On my MacOS, it works. On my linux based server, however, it still doesn't work.
my macos 
````
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
evaluate = "*"
rouge-score = "*"

[dev-packages]

[requires]
python_version = "3.10"
python_full_version = "3.10.5"
````
<img width="776" alt="image" src="https://github.com/huggingface/evaluate/assets/87082118/697a9789-b740-44dd-812f-5e3341898aad">


I solved the problem by 
`````
sudo apt-get update
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev
``````

it was pyenv problem that it didn't install python well.