Linux下安装scikit-learn numpy scipy

scikit-learn

Scikit-Learn是基于python的机器学习模块,其安装依赖numpy scipy等模块。
官方文档介绍有如下依赖:

Scikit-learn requires:

  • Python (>= 2.6 or >= 3.3),
  • NumPy (>= 1.6.1),
  • SciPy (>= 0.9).

之前写过一篇linux下安装 numpy scipy 的文章,过程艰难之极~~。
今天需要重新配置 机器学习开发环境,都不敢动手了。后来看到 scikit-learn的官方安装文档提到,在安装scikit-learn之前同样需要一大波依赖,(装个环境不容易-.-)。看到文档后半部分提到这么一段话:

Third party distributions of scikit-learn

Some third-party distributions are now providing versions of scikit-learn integrated with their package-management systems.
These can make installation and upgrading much easier for users since the integration includes the ability to automatically install dependencies (numpy, scipy) that scikit-learn requires.
The following is an incomplete list of Python and OS distributions that provide their own version of scikit-learn.
Debian and derivatives (Ubuntu)

The Debian package is named python-sklearn (formerly python-scikits-learn) and can be installed using the following command:

sudo apt-get install python-sklearn

意思是说 在 ubuntu类似的环境下,已经把所需的依赖全部打包好了,只用一条指令就可以自动安装所有的依赖了。。。这个包的名字叫python-sklearn.
太棒了!!还好没看到前面就开始动手安装。。。。
本机环境:
ubuntu15.04
python2.7(系统自带)

参考

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

你可能感兴趣的:(Machine,Learning)