ArchLinux默认提供最新版本scikit-learn安装
pacman -Syu scikit-learn
这样安装的是支持python 3的,正是我要的。
然后从网站上下载一个线性回归的例子
http://scikit-learn.org/stable/auto_examples/linear_model/plot_ols.html#example-linear-model-plot-ols-py
文件名:plot_ols.py
运行该文件,报缺少模块
python-matplotlib
pacman -Syu python-matplotlib
再次运行文件,成功,看到图形了。