您的位置:首页 > 运维架构 > Linux

Centos7 平台中对于scikit安装教程的学习

2016-03-30 22:23 621 查看
cython 安装的内容

在Scikit的教程当中,首先是工具的安装。在工具的安装当中,要求控件版本如下:

Python (>= 2.6 or >= 3.3),
NumPy (>= 1.6.1),
SciPy (>= 0.9).


scrapy error: Python.h: No such file or directory

yum install python-devel


yum install python-devel 安装了之后,解决 Python.c的问题

其次安装numpy当中,需要cython.compile.main的问题,于是需要安装cyphon

cython 安装中,在该文件夹之下,可以用 python setup.py install

然后安装numpy , python setup.py install

安装 scipy python setup.py install

在安装Scipy的过程当中,会遇到问题no lapack/blas resources found scipy

这种情况下,可以通过以下命令解决

yum install lapack lapack-devel blas blas-devel

或者可以采用pip安装这两个控件

pip install numpy

pip install scipy

最有用的以下几种安装方式为:

sudo yum install numpy

sudo yum install scipy

sudo yum install python-matplotlib

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