Original: http://www.cnblogs.com/cyttina/archive/2013/06/08/3127345.html
Ubuntu looks at the official documents.
Http://scikit-learn.org/stable/install.html
I'm using Centos,python for 2.7.3.
about how to change the version of Python to 2.7.3, you can see this article, the following is the installation of Python from this connection to the
http://www.zhangchun.org/the-centos6-3-upgrade-python-to-2-7-3-version/
1. Download Python-2.7.3
Wget http://python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2,
2. Unzip the Python-2.7.3
TAR-JXVF python-2.7.3.tar.bz2
3. Go to the folder you just unzipped
CD Python-2.7.3
4. Installation
$./configure$ make all $ sudo make install$ make clean$ make Distclean
5. View version Information
/usr/local/bin/python2.7-v
6. Establish a soft connection so that the system default Python points to python2.7
Under normal circumstances, even if the python2.7 installation succeeds, the system pointing to Python is still the 2.6.6 version, considering that Yum is based on python2.6.6 to work properly and does not dare to uninstall easily.
How do you point to the system default Python to version 2.7?
Mv/usr/bin/python/usr/bin/python2.6.6ln-s/usr/local/bin/python2.7/usr/bin/python
7. Fix system Python soft links to python2.7 version, Yum does not work properly
Vi/usr/bin/yum
The file header is
#!/usr/bin/python
Change into
#!/usr/bin/python2.6.6
The entire upgrade process is complete and you can use the Python2.7.3 version.
Installing NumPy and SciPy
sudo yum install numpy.x86_64sudo yum install scipy.x86_64
Install PIP
wget http://python-distribute.org/distribute_setup.pysudo python distribute_setup.pywget https:// Github.com/pypa/pip/raw/master/contrib/get-pip.pysudo python get-pip.py
Enter PIP if you can see the information to prove that the installation was successful.
Installing Scikit-learn
Pip Install-u Scikit-learn
See successfully installed Scikit-learn instructions for installation success.
Linux installation Scikit-learn