scikit-learn ubuntu安装

来源:互联网 发布:程序员需要什么学历 编辑:程序博客网 时间:2024/05/29 06:32

scikit-learn ubuntu安装


软件工具包获取方式:

       scikit-learn的官方网站:http://scikit-learn.org (肯能需要科学上网)

       github网址:https://github.com/scikit-learn/scikit-learn

scikit-learn需要依赖:Python (>= 2.6), NumPy (>= 1.3), SciPy (>= 0.7), setuptools, Python development headers and a working C++ compiler

Ubuntu系统:

[plain] view plain copy
  1. sudo apt-get install build-essential python-dev python-numpy python-setuptools python-scipy libatlas-dev  
如需跑示例程序则需要安装matplotlib进行画图之类的:

[plain] view plain copy
  1. sudo apt-get install python-matplotlib  
如果系统有安装 pip 或者easy_install,则可以进行如下快捷安装:

[plain] view plain copy
  1. pip install -U scikit-learn  
或者

[plain] view plain copy
  1. easy_install -U scikit-learn  

更多安装请参见官网:http://scikit-learn.org/stable/install.html
原创粉丝点击