您的位置:首页 > 编程语言 > Python开发

(转)ubuntu 16.04下安装Python数据挖掘所需环境

2017-11-22 21:41 507 查看
进行数据挖掘主要还是使用python的几个库:numpy,scipy,pandas,scikit-learn,statsmodels,matplotlib等等。

为了方便安装,使用pip工具来安装也是很方便的,用

[plain] view plain copy

pip install +库名

即可

但是博主发现有时在pip上由于各个库的依赖关系处理的不是很好,常常会出现安装报错的情况,因此还是建议大家在安装数据挖掘所需库的时候,使用以下方法安装:

Numpy:

[html] view plain copy

sudo apt-get install python-numpy

Scipy:

[html] view plain copy

sudo apt-get install python-scipy

绘图库matplotlib:

[html] view plain copy

sudo apt-get install python-matplotlib

主力工具pandas:

[html] view plain copy

sudo apt-get install python-pandas

统计建模分析工具statsModels:

[html] view plain copy

sudo apt-get install python-statsmodels

机器学习库scikit-learn:

[html] view plain copy

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