Installing the NumPy and matplotlib libraries on Ubuntu 14.04 64bit

Source: Internet
Author: User
Tags install matplotlib

Original: http://blog.csdn.net/tao_627/article/details/44004541

Follow this successful installation!

Machine learning is a form of data mining, in the process of learning "machine learning combat", the need to install a Python environment NumPy and Matplotlib Library, I will be in the Ubuntu 14.04 64bit groping process summarized as follows:

The recommendations in the book are:

The best way to install Python, numpy and matplotlib under the Debian/ubuntu system is to use a package manager such as Apt-get. Avoid installing in the form of a source package because the dependencies of the package are more difficult to handle.

To install NumPy just enter the following command:

sudo apt-get install Python-numpy

sudo apt-get install python-scipy

To ensure that the above two installations are correct, install the Matplotlib library again, note

There are many ways to install matplotlib, and the best way to do this is with the operating system you use, the software you have installed, and how you want to use it tightly.

sudo apt-get python-matplotlib

Here is the installation:

A test of the above Python environment configuration can be found in the example in my next blog post:

http://blog.csdn.net/tao_627/article/details/44007041

================== The following content can be ignored =============================

The above installation steps can be basically passed, but I have to pass the following test, but also specifically installed the following several modules, Python-nose module is a unit test module, must be installed.

sudo apt-get install Ipython ipython-notebook python-pandas python-sympy python-nose

This requires downloading more than 300 m packets, which is more than 900 m of disk space after installation.

Then enter the following command at the terminal

Python
Import scipy
Import NumPy
Import Pylab
Scipy.test ()
Numpy.test ()
Pylab.test ()

The test found that both scipy and NumPy did not pass, but Pylab passed. The reason is being looked up.

Reference documents

[1].http://www.scipy.org/install.html

[2].http://blog.csdn.net/adream307/article/details/8564441

Installing the NumPy and matplotlib libraries on Ubuntu 14.04 64bit

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.