admin 管理员组文章数量: 1086019
linux 离线安装 pandas,linux下安装numpy,pandas,scipy,matplotlib,scikit
python在数据科学方面需要用到的库:
a。Numpy:科学计算库。提供矩阵运算的库。
b。Pandas:数据分析处理库
c。scipy:数值计算库。提供数值积分和常微分方程组求解算法。提供了一个非常广泛的特定函数集合。
d。Matplotlib:数据可视化库
e。Scikit-learn:机器学习库
安装顺序如下:
1.pip install numpy
2.pip install pandas
3.pip install scipy
(sudo apt-get install libatlas-base-dev gfortran //这一步是后面安装scipy所必需的. 备注:这个我没有先安装,直接就安装scipy)
4.pip install matplotlib
(安装matplotlib之前首先安装libpng。下载地址:,解压进入该文件夹,输入python install setup.py。
安装freetype,下载地址:,解压进入该文件夹,输入python install setup.py。
对于freetype.tar.bz2的包,先进行安装再解压,命令:yum install bzip2,bunzip2 freetype-2.6.3.tar.bz2,tar -xvf freetype-2.6.3.tar)
5.pip install -U scikit-learn
建议用pip进行安装。也可以用yum安装,apt-get安装。但是pip安装的包一般都比较新,所以建议用pip进行安装。
其实numpy,pandas,scipy,matplotlib可以直接下载一个anaconda就可以了。
具体可以看/
原文:.html
本文标签: linux 离线安装 pandas linux下安装numpy pandas Scipy matplotlib
版权声明:本文标题:linux 离线安装 pandas,linux下安装numpy,pandas,scipy,matplotlib,scikit 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/p/1700352125a409456.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论