mac OS 安装 scikit-learn

最近用来做实验,使用python时发现scikit-learn提供的库非常好用。因此,在电脑上果断下载安装:

step1:

sudo easy_install pip

step2:

sudo pip install -U numpy scipy scikit-learn

step3:测试

python -c "import sklearn; sklearn.test()"

测试得到结果如下:

此时,sklearn的库可以正常使用。

http://scikit-learn.org/stable/中找个例子都可以运行获得效果了,好开心哦!

原文地址:https://www.cnblogs.com/fyymonica/p/4344569.html