Ubuntu安装sciki-learn及环境

http://scikit-learn.org/stable/install.html

安装python-dev

安装这个包,以后安装各种python扩展包,可以省很多事情。

sudo apt-get install python-dev


使用apt-get 安装

只需要下面的几个命令即可,亲测可用。

sudo apt-get install python-numpy
sudo apt-get install python-scipy
sudo apt-get install python-matplotlib

If you already have a working installation of numpy and scipy, the easiest way to install scikit-learn is using pip

pip install -U scikit-learn
原文地址:https://www.cnblogs.com/felixzh/p/5319632.html