rasa: rasa_nlu.train - missing package sklearn

rasa NLU version (e.g. 0.7.3): 0.8.5

Used backend / pipeline (mitie, spacy_sklearn, …): spacy_sklearn

Operating system (windows, osx, …): Windows 7 64 bit/Python 2.7

Issue:

the training module fails to run, complains about sklearn not installed C:\dev\rasa-nlu>python -m rasa_nlu.train -c config_spacy.json Traceback (most recent call last): File "C:\Python27\lib\runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) File "C:\Python27\lib\runpy.py", line 72, in _run_code exec code in run_globals File "C:\Python27\lib\site-packages\rasa_nlu\train.py", line 83, in <module> do_train(config) File "C:\Python27\lib\site-packages\rasa_nlu\train.py", line 70, in do_train trainer = Trainer(config, component_builder) File "C:\Python27\lib\site-packages\rasa_nlu\model.py", line 125, in __init__ components.validate_requirements(config.pipeline) File "C:\Python27\lib\site-packages\rasa_nlu\components.py", line 103, in validate_requirements " ".join(failed_imports))) Exception: Not all required packages are installed. Please install sklearn

I do have scikit-learn (0.18.1) installed

pip install sklearn got sklearn 0.0 that didn’t resolve the problem

Content of configuration file (if used & relevant):

stock config_spacy.json

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 24 (17 by maintainers)

Most upvoted comments

This worked for me. I’m not using conda.

pip install python-crfsuite scipy

So up and running, @tedstriker? Would be awesome if you amend the documentation where you feel it has shortcomings 👍

@bigman73 If you could modify and improve the documentation that would be awesome and especially since I am not using windows it is hard for me / us to make the documentation really good there. So any improvement there would be really appreciated 👍

Concerning the permission denied error, this is a known issue #357 that needs fixing.