1.安装pip
CentOS安装python包管理安装工具pip的方法如下:
wget --no-check-certificate https://github.com/pypa/pip/archive/1.5.5.tar.gz
注意:wget获取https的时候要加上:--no-check-certificate
tar zvxf 1.5.5.tar.gz #解压文件
cd pip-1.5.5/
python setup.py install
OK,这样就安装好pip了
2.安装pandas
pip install pandas
3.安装numpy
pip install numpy
4.安装scipy
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/lapack-devel-3.2.1-4.el6.x86_64.rpm wget http://mirror.centos.org/centos/6/os/x86_64/Packages/blas-devel-3.2.1-4.el6.x86_64.rpm wget http://mirror.centos.org/centos/6/os/x86_64/Packages/texinfo-tex-4.13a-8.el6.x86_64.rpm
yum localinstall *.rpm
pip install scipy
5.安装scikit-learn
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/lapack-devel-3.2.1-4.el6.x86_64.rpm wget http://mirror.centos.org/centos/6/os/x86_64/Packages/blas-devel-3.2.1-4.el6.x86_64.rpm wget http://mirror.centos.org/centos/6/os/x86_64/Packages/texinfo-tex-4.13a-8.el6.x86_64.rpm wget 后面两个是其相关依赖包。yum localinstall *.rpmpip install scipy 成功了 pip install scikit-learn 也OK了
本文介绍了如何在CentOS系统中安装pip以及数据科学常用的库,包括pandas、numpy和scipy的详细步骤。
1941

被折叠的 条评论
为什么被折叠?



