您的位置:首页 > 其它

ubuntu 环境下搭建 scikit-learn 环境

2016-04-29 22:31 351 查看

1. Scikit-learn requires

Python (>= 2.6 or >= 3.3),

NumPy (>= 1.6.1),

SciPy (>= 0.9).

  注意在scikit-learn 官网中给出了这样一段话:

We don’t recommend installing scipy or numpy using pip on linux, as this will involve a lengthy build-process with many dependencies. Without careful configuration, building numpy yourself can lead to an installation that is much slower than it should be….

  由于之前安装 numpy 使用的是 pip 工具,之后在安装 scipy 和 scikit-learn 时出现很多依耐包不存在的问题,一个一个手动安装之后还是出现其他的问题,还是未解决,希望高手指导下啊。

  不过在 scikit-learn 官网找到了一个安装的另一个方法:使用 conda !后来了解发现 Anaconda 是一个和Canopy类似的科学计算环境,但用起来更加方便。自带的包管理器conda也很强大。便考虑搭建 Miniconda 环境,x86_64下载地址:Miniconda2-latest-Linux-x86_64.sh

2. 安装 Scikit-learn

conda install scikit-learn


  会同时下载所依耐的包:



  下载安装完成之后,打开 pycharm ,修改默认的 Project Interpreter:





3. Done

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: