Install NumPy, SciPy, Scikit-learn under CentOS 6.5

Source: Internet
Author: User
Tags install pandas install matplotlib

First, update the Python version
1. View the Python version

[Email protected] ipython-5.1.0]# python-v

Python 2.6.6

2. Download python-2.7.3

https://www.python.org/download/releases/2.7.3/

python-2.7.3.tar.bz2

3. Unzip and change the working directory

TAR-JXVF python-2.7.3.tar.bz2

CD Python-2.7.3

4. Installation

./configure

Make all

Make install

Make clean

Make Distclean

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

5. Create a soft link to make the system default Python point to python2.7

[Email protected] python-2.7.3]# mv/usr/bin/python/usr/bin/python2.6.6

[Email protected] python-2.7.3]# ln-s/usr/local/bin/python2.7/usr/bin/python

[Email protected] python-2.7.3]# python-v

Python 2.7.3

6. Specify the python version of Yum

Fix system Python soft links point to Python2.7 version, since Yum is not compatible with Python 2.7, Yum does not work and we need to

Vi/usr/bin/yum Change the #!/usr/bin/python of the file header to #!/usr/bin/python2.6.6


Second, install Pip

1. Download and install Setuptools

2. Download and install Pip

Third, install NumPy, Pandas, SciPy, matplotlib

1. Installing dependent Packages

SciPy need to rely on third-party packages such as Atlas, Blas, etc.

Yum Install Blas-devel Lapack-devel

2. Install with PIP

Pip Install NumPy

Pip Install Pandas

Pip Install scipy

Pip Install Scikit-learn

Pip Install Matplotlib

Install NumPy, SciPy, Scikit-learn under CentOS 6.5

Related Article

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.