Mac on the Python machine learning environment to build __python

Source: Internet
Author: User
Tags install matplotlib

System: OS X 10.11.6

The MAC system has its own Python2.7, using the Easy_install command with its own system to install the modules online. If you need to use the PYTHON3 environment, python3.5 is invoked at the terminal input Python3 after installing the Python3.5.
1, view Python version

Python

2, install NumPy
NumPy is a Python package. It represents "Numeric Python". It is a library of multidimensional array objects and a collection of routines that are used to process arrays.

sudo easy_install numpy

3. Install scipy
Built on top of NumPy, the SCIPY library provides a set of tools for scientific computing in Python, such as algorithms for numerical computations and functional functions that can be easily processed by data.

sudo easy_install scipy

Comparison:
NumPy is a mathematical computing module based on matrix.
SciPy is based on numpy, a scientific computing base, and has some higher order abstraction and physical models. Let's say a Fourier transform, which is a mathematical process, with NumPy, as a filter, this is a signal processing model, find in the scipy.

4, install Matplotlib
Matplotlib is a Python 2D drawing library that generates publishing quality-level graphics in a variety of hard copy formats and cross-platform interactive environments.

sudo easy_install matplotlib

5, quit Python command mode
Use Quit (), exit (), or ctrl-d exit command line.

Reference Links:
Installation of common packages in machine learning under 1,MAC environment
http://www.jianshu.com/p/2a18c7645167

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.