安装numpy 和 scipy
sudo yum install lapack lapack-devel blas blas-devel
sudo yum install numpy.x86_64
下载scipy,解压之后
下载scipy,解压之后
sudo python setup.py install
安装pip
复制代码
代码如下:
# wget "https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=834b2904f92d46aaa333267fb1c922bb" --no-check-certificate
# tar -xzvf pip-1.5.4.tar.gz
# cd pip-1.5.4
# python setup.py install
输入pip如果能看到信息证明安装成功。
安装scikit-learn
复制代码
代码如下:
sudo pip install -U scipy (如果上面安装失败,用pip安装)
sudo pip install -U scikit-learn
sudo pip install -U scikit-learn
看到Successfully installed scikit-learn说明安装成功。