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
相关文章推荐
- iOS-Effective Objective-C 2.0 读书笔记(三)
- hbase简介
- 2第一个C程序“Hello World”
- ORACLE手工删除数据库
- [原]Android Studio查询SHA1的方法
- knn算法python实现
- vim——打开多个文件、同时显示多个文件、在文件之间切换
- centos 安装php
- HTML5——将图片拖拽上传
- HTML如何实现 导航的二级菜单
- javascript中构造函数的返回值问题和new对象的过程
- Android的系统服务一览
- C++数据抽象
- 使用定时器执行含有参数的函数
- 鸡蛋面
- 单单Scrum是不够的
- python解决八皇后问题
- iOS: 环信的推送
- C/C++中extern关键字详解
- CocoaPods的安装步骤