Linux installation Scikit-learn

Source: Internet
Author: User

Original: http://www.cnblogs.com/cyttina/archive/2013/06/08/3127345.html

Ubuntu looks at the official documents.

Http://scikit-learn.org/stable/install.html

I'm using Centos,python for 2.7.3.

about how to change the version of Python to 2.7.3, you can see this article, the following is the installation of Python from this connection to the

http://www.zhangchun.org/the-centos6-3-upgrade-python-to-2-7-3-version/

1. Download Python-2.7.3

Wget http://python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2,

2. Unzip the Python-2.7.3

TAR-JXVF python-2.7.3.tar.bz2

3. Go to the folder you just unzipped

CD Python-2.7.3

4. Installation

$./configure$ make all    $ sudo make install$ make clean$ make Distclean

5. View version Information

/usr/local/bin/python2.7-v

6. Establish a soft connection so that the system default Python points to python2.7
Under normal circumstances, even if the python2.7 installation succeeds, the system pointing to Python is still the 2.6.6 version, considering that Yum is based on python2.6.6 to work properly and does not dare to uninstall easily.

How do you point to the system default Python to version 2.7?

Mv/usr/bin/python/usr/bin/python2.6.6ln-s/usr/local/bin/python2.7/usr/bin/python

7. Fix system Python soft links to python2.7 version, Yum does not work properly

Vi/usr/bin/yum

The file header is
#!/usr/bin/python
Change into
#!/usr/bin/python2.6.6

The entire upgrade process is complete and you can use the Python2.7.3 version.

Installing NumPy and SciPy

sudo yum install numpy.x86_64sudo yum install scipy.x86_64

Install PIP

wget  http://python-distribute.org/distribute_setup.pysudo python distribute_setup.pywget  https:// Github.com/pypa/pip/raw/master/contrib/get-pip.pysudo python get-pip.py

Enter PIP if you can see the information to prove that the installation was successful.

Installing Scikit-learn

Pip Install-u Scikit-learn

See successfully installed Scikit-learn instructions for installation success.

Linux installation Scikit-learn

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.