Install Matplotlib, NumPy, and scipy modules under Windows python

Source: Internet
Author: User
Tags install matplotlib

Scikit-learn run requires Matplotlib, NumPy and scipy modules, Python's package resource link: http://www.lfd.uci.edu/~gohlke/pythonlibs/

Pip

The Python package previously provided EXE files and wheel files, but only recently provided wheel files, which required install Setuptools, install PIP, first download two files ez_setup.py and get-pip.py These two files, run under CMD.

The installation PIP needs to be downloaded on the Python's official website: https://pypi.python.org/pypi/pip#downloads. After the download is complete, unzip to a folder, use the CMD console to enter the Extract directory, enter:

Python setup.py Install

Once installed, we enter PIP directly at the command line, which also shows that ' Pip ' is not an internal command or a running program. Because we haven't added environment variables yet.

Following the method of adding environment variables as described earlier, we add the following path at the end:

C:\Python34\Scripts;

Now we're all set up. Pip

Open a command-line window and enter the following command:

Pip Install Wheel

the PIP will automatically download the installation wheel on the network. After the installation is complete, you can tap the following command to see if the installation was successful:

Pip Freeze

Numpy

Provide a numpy exe file, http://sourceforge.net/projects/numpy/files/NumPy

Where NumPy provides the following functions:

1.array () method to create data
Shape of an array of 2.shape properties
3.reshape () method creates a new array of the specified shape
4.dtype property gets the element type of the array
5.arange () method creates an equal margin group by specifying a start value, a final value, and a step size
The 6.linspace () method creates a one-dimensional array that represents arithmetic progression by specifying a start value, a final value, and the number of elements (you can specify whether the final value is included through endpoint)
7.logspace () method create geometric series (Base set cardinality)
8.zeros (), ones (), empty () method creates an array of the specified shape
9.zeros_like (), Ones_like (), Empty_like () method create an array that is the same as the parameter shape and type
10.frombuffer (), fromstring (), FromFile () method to create an array from a byte sequence or file
The 11.fromfunction () method creates an array by using a pre-defined function
12.s_ Object Creation Array subscript
13.tostring (), ToFile () method converts an array to a string in binary form or to a file
The 14.item () method returns the standard Python type
15.frompyfunc () converts a single worthwhile function into a ufunc function that can be computed for each element in the array
16.ogrid object quickly generates an array that can perform broadcast operations
function library
17.sum () summation, mean () averaging, average () averaging (no out,dtype parameter, weight parameter), STD () standard deviation, VAR () variance
18.min () Minimum, Max () maximum, PTP () maximum minimum difference, Argmax () max subscript, argmin () min subscript
19.sort () sort
Polynomial
20.poly1d a unary polynomial object, poly1d converts the coefficients to a unary polynomial object
21.deriv () method polynomial integrals of Integ () method
22.roots () function calculates the root of a polynomial
The 23.poly function converts the root to the coefficients of the polynomial
Segment function
24.where (Condition,y,z)
25.select (Condlist, ChoiceList, default=0)
26.piecewise (x, Condlist, funclist)
Statistical functions
27.unique () returns all the different values in its parameter array and is arranged in order from small to large
The 28.bincount () function counts the number of occurrences of individual elements in an array of integers
29.histogram () function histogram statistics for one-dimensional arrays, parameter list:
Histogram (A, bins=10, Range=none, Normed=false, Weights=none)
Linear algebra
Various product operations
30.dot () The product of the computed matrix
Each element in the resulting array is the product of all the elements on the last dimension of array A and all the elements on the penultimate dimension of array B
31.inner ()
Each element in the resulting array is: the inner product of the last dimension of the array A and B
32.outer () calculated only in one-dimensional array
Solving systems of linear equations
33.LINALG module: NumPy linear algebra Module
34.solve () Solving multi-dimensional systems
35.LSTSQ () a more generalized solution to the multi-dimensional equations, a may not be a phalanx
File access
The 36.tofile () method writes the array data in binary format to the file
37.fromfile () Read file, need to develop dtype type
38.load (), save () saves data in a numpy-only binary format
39.savez () Save multiple arrays
40.savetxt (), Loadtxt () Read and write a text file that holds one and two-dimensional arrays

Scipy

provide a scipy exe file, http://sourceforge.net/projects/scipy/files/Scipy

Matplotlib

Provide a scipy exe file, http://sourceforge.net/projects/matplotlib/files/matplotlib/

Install Matplotlib, NumPy, and scipy modules under Windows python

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.