Recently to the line of business to install Python extension Numpy,scripy,scikit-learn, encountered a lot of error, also took a few detours, took a long time, it is best to find unexpectedly is a very simple problem.
System Environment: Centos 6.5
python:2.7
Pip install numpy very smooth, no error
Pip install scipy A pile of error, the error is roughly as follows
Installing SCIPY on Redhat with error "No Lapack/blas resources found"
Then started Baidu, said to be manually installed Lapack,atlas package
Download the source package, according to the document to start compiling, compiled Atlas unexpectedly a pile of error, as follows
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7C/B5/wKioL1bWn7KhY_u1AABlxTIqxz8568.png "title=" Qq20160302160750.png "alt=" wkiol1bwn7khy_u1aablxtiqxz8568.png "/> tried to find the method, still error
Accidentally saw an article, said
scikit-learn installation must be supported by several packages, one is lapack, nose and atlas, but the installation needs to be configured for several hours and is prone to error, so I thought of other methods later. I just installed a scipy, there is no need to load the entire Atlas package, only need to download the corresponding support can be, the corresponding support is Devel package, blas-devel Lapack-devel Atlas-devel, so hurry to download
wget Http://mirror.centos.org/centos/6/os/x86_64/Packages/lapack-devel-3.2.1-4.el6.x86_64.rpmwget/HTTP Mirror.centos.org/centos/6/os/x86_64/packages/blas-devel-3.2.1-4.el6.x86_64.rpmwget http://mirror.centos.org/ Centos/6/os/x86_64/packages/texinfo-tex-4.13a-8.el6.x86_64.rpmwget back two is its dependent package.
Yum Localinstall *.rpm
After
Pip install scipy successful pip install Scikit-learn OK, OK, done! Test in Python: >>>import sklearn>>>import scipy no error, the installation was successful.
This article is from the "xg" blog, please be sure to keep this source http://xg2007524.blog.51cto.com/869106/1746794
Centos6.5 installation scipy Sciki-learn a bunch of errors