美文网首页
Ubuntu下安装scikit-learn

Ubuntu下安装scikit-learn

作者: 墨痕hz | 来源:发表于2018-08-01 11:03 被阅读28次

1.安装依赖

在terminal里面直接输入以下命令,这个命令会安装sklearn所需要的依赖,主要包括 scipy, numpy一些主流依赖。

sudo apt-get install build-essential python-dev python-numpy python-setuptools python-scipy libatlas-dev libatlas3-base

2.可选安装

安装画图依赖包 matplotlib,这个包基本上都会用到

sudo apt-get install python-matplotlib

3.安装sklearn

pip install -U scikit-learn

相关文章

网友评论

      本文标题:Ubuntu下安装scikit-learn

      本文链接:https://www.haomeiwen.com/subject/esplvftx.html