scikit-learn: no module named sklearn.model_selection, sklearn.exceptions, sklearn.multioutput while building the doc
I downloaded the repository to change something in documentation.
I tried to build the html:
make html-noplot
But at the beginning it says:
Failed to import ‘sklearn.model_selection’: no module named sklearn.model_selection Failed to import ‘sklearn.exceptions’: no module named sklearn.exceptions Failed to import ‘sklearn.multioutput’: no module named sklearn.multioutput
As far as I want to work with cross_val_score doc page I can’t solve the issue #6542
WARNING: [autosummary] failed to import u’sklearn.model_selection.cross_val_score’: no module named sklearn.model_selection.cross_val_score
So as a result some html appeared, but not all of them (including cross_val_score)
All packages are up-to-date. OS X. Python 2.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 16 (16 by maintainers)
What? I have been using 4 or 5 virtualenvs on daily basis for 2 or 3 years both under Linux, Mac OSX and Windows and I have no issues.
By the way, I’d strongly recommend against using virtualenv with any code that depends on NumPy, SciPy, and other compiled extensions. Virtualenv is designed to manage Python dependencies – and does so admirably – but can cause a lot of strange issues when it tries to manage compiled extensions and (especially) shared libraries.
A much better tool for this is conda envs.