oduleNotFoundError: No module named 'sklearn' code example
Example 1: No module named 'sklearn'
pip install scikit-learn
Example 2: ModuleNotFoundError: No module named 'sklearn.cross_validation'
Substitute cross_validation to model_selection
Example 3: ModuleNotFoundError: No module named 'sklearn'
pip install -U scikit-learn scipy matplotlib
pip3 install -U scikit-learn scipy matplotlib
Example 4: ModuleNotFoundError: No module named 'sklearn.cross_validation'
ImportError: No module named sklearn.cross_validation