Forums

sklearn.model_selection not working for me

Hi,

I want to pip install sklearn but I keep getting this message;

12:52 ~/.virtualenvs/kaggleprojects/lib/python3.5/site-packages $ pip install sklearn.model_selection Collecting sklearn.model_selection Could not find a version that satisfies the requirement sklearn.model_selection (from versions: ) No matching distribution found for sklearn.model_selection 12:53 ~/.virtualenvs/kaggleprojects/lib/python3.5/site-packages $ pip install sklearn Requirement already satisfied (use --upgrade to upgrade): sklearn in /home/isaacalabi/.local/lib/python2.7/site-packages Requirement already satisfied (use --upgrade to upgrade): scikit-learn in /usr/local/lib/python2.7/dist-packages (from sklearn) 12:53 ~/.virtualenvs/kaggleprojects/lib/python3.5/site-packages $

Any help will be appreciated.

The first error is because sklearn.model_selection is not a valid package name so it's not installable. The second is because sklearn is already installed.

So, from sklearn import model_selection should work?

If model_selection is a valid import that is included in the sklearn package.