1. 先安装numpy,scipy依赖项
pip install numpy sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev gfortran sudo pip install scipy
2. 安装scikit-learn
sudo apt-get install python-sklearn
3. 查看安装结果
pip list
出现scikit-learn 即为安装成功