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