Centos6.5 installation scipy Sciki-learn a bunch of errors

Source: Internet
Author: User
Tags lapack

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.