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