Skip to content

fix import error message for sklearn#608

Closed
wubing101 wants to merge 1 commit intohuggingface:mainfrom
wubing101:main
Closed

fix import error message for sklearn#608
wubing101 wants to merge 1 commit intohuggingface:mainfrom
wubing101:main

Conversation

@wubing101
Copy link

for sklearn, if needing install it, the ImportError should write "pip install scikit-learn" instead of "pip install sklearn"
now:
File "/home/ubuntu/wubing/evaluate/src/evaluate/loading.py", line 265, in _download_additional_modules
raise ImportError(
ImportError: To be able to use evaluate-metric/accuracy, you need to install the following dependencies['sklearn'] using 'pip install scikit-learn' for instance'

before:
File "/home/ubuntu/anaconda3/envs/swift_llm/lib/python3.9/site-packages/evaluate/loading.py", line 265, in _download_additional_modules
raise ImportError(
ImportError: To be able to use evaluate-metric/accuracy, you need to install the following dependencies['scikit-learn'] using 'pip install sklearn' for instance'

@wubing101 wubing101 closed this by deleting the head repository Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant