Numpy+pandas+scipy+matplotlib+scikit-learn installation of Python data analysis

Source: Internet
Author: User

Summary

The use of Python for data analysis, you need to install some common tools, such as numpy,pandas,scipy, etc., during the installation process, often encountered some installation details problems, such as version mismatch, need to rely on the package is not installed properly, etc. This article summarizes the next few necessary installation package installation steps, hoping to help readers, the environment is Windows bit+python2.7.11.

A Installing python2.7.11

Access official website: https://www.python.org/downloads/release/python-2711/

Download the following connection:

After download is an MSI installation file, Python-2.7.11.amd64.msi, directly select Directory installation.

To set the environment variables to Python after installation, make sure that they are supported on the command line. The steps are as follows:

Right My computer----high-level--environment variable-->path

At the end of the Add python2.7.11 installed directory, such as:

Two Upgrade Pip to version 8.1

After the Python2.7.11 version is installed, the PIP 7.1.2 version is installed by default and is upgraded to version 8.1 using the following command: python-m pip install--upgrade pip

The following prompt appears to indicate successful installation:

Three Installing NumPy

Download the corresponding version number on the official website:

https://pypi.python.org/pypi/numpy/1.10.4

http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy

(PS: The official web page seems to find the older version, I myself was found on the CSDN a resource bundle downloaded: http://download.csdn.net/download/pleaseandplease/ 9387857, download this package: NUMPY-1.10.2+MKL-CP27-NONE-WIN_AMD64.WHL)

After downloading it into a fixed directory, use the command pip install NUMPY*.WHL to install, after successful results are as follows:

You can also see the post-installation version using the PIP list:

Import uses normal

Four Installing scipy

Download the corresponding WHL installation package online, such as:

Scipy-0.15.1-cp27-none-win_amd64.whl

There is currently only a newer version of the official website, the 1.5 version is not provided, I was downloaded on the micro disk, the connection is as follows:

Http://vdisk.weibo.com/s/Dp2sFMRNcCOI

There is only a newer version of the WHL package on the official website.

After downloading, refer to the way above, using PIP to install, the successful prompt is as follows:

The Pip list can also see the installed version

Import use test OK

Five Installing Matplot

Similar to the previous step, download the corresponding WHL version, such as:

Matplotlib-1.5.0-cp27-none-win_amd64.whl

The official web site also seems to be not under the old version, I am in this connection up and down:

http://zh.osdn.net/projects/sfnet_matplotlib/downloads/matplotlib/matplotlib-1.5.0/windows/ matplotlib-1.5.0-cp27-none-win_amd64.whl/

Install using PIP install, after successful following prompt:

When installing Matplot, some dependent packages, such as Dateutil, are installed, and a number of new packages are added with the PIP List view:

Use Import to use OK

>>> Import Matplotlib.pyplot as Plt

>>> Plt.plot ([+])

[<matplotlib.lines.line2d object at 0x00000000079e9be0>]

>>> Plt.show ()

Six Installing Scikit-learn

To the official website to download the corresponding WHL version,

Https://sourceforge.net/projects/scikit-learn/files/?source=navbar

For example, use this version:

To install using the PIP Install command, the following is successful:

PIP list See installed version

Use Import to test OK

Seven Installing Pandas

Go to official website http://pandas.pydata.org/ find the corresponding version link

Download the corresponding wheel version:

Use pip install to install

PIP list See version

Import uses normal

Eight All installation Packages

The list of all packages that need to be installed is as follows:

Numpy+pandas+scipy+matplotlib+scikit-learn installation of Python data analysis

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.