from sklearn datasets import load_breast_cancer on the other handif you are using standard python distribution and having numpy and scipy then scikit-learn can be installed using popular python package installerpip pip install - scikit-learn after installing scikit-learnyou can use it into your python script as you have done above