Scikit Learn is an open-source machine learning package under Python. (Installation Environment: win7.0 32bit and Python2.7)
- Python a convenient way to install third-party expansion packs: Easy_install + packages name
On the official website https://pypi.python.org/pypi/setuptools/#windows-simplified
Download the name
The file.
Run in a command-line window, after installation, you can generate the Scripts folder under the python2.7 folder. D:\Python27\Scripts the path.
Added to the environment variable, you can easily use the Easy_install.exe command.
- You should theoretically be able to install matplotlib, numpy using the Easy_install command. However, due to the speed limit, error always occurs. So you can choose to download the. exe file for manual installation.
NumPy Download Link
http://download.csdn.net/detail/ivankeiths/1205245
matplotlib Download link
Http://matplotlib.org/downloads.html
Before installing matplotlib , you need to install two auxiliary packages, Dateutil and pyparsing.
can be installed by command Easy_install Python_dateutil and Easy_install pyparsing
After manually installing matplotlib can be
- If you run the command import Matplotlib.pyplot as PLT error
Importerror:no module named six; the path can be:
C:\Python27\Lib\site-packages\scipy\lib six.py Six.pyc six.pyo Three files are copied to the C:\Python27\Lib\site-packages directory.
1 ImportNumPy as NP2 ImportMatplotlib.pyplot as Plt3 4X = Np.arange (-5.0, 5.0, 0.1)5Y = Np.arange (-5.0, 5.0, 0.1)6 7X, y =Np.meshgrid (X, Y)8f = * x * * 2-16 * NP.ABS (x) * y + + * y * * 2-2259 TenFig =plt.figure () OneCS = Plt.contour (x, Y, F, 0, colors ='R') APlt.show ()
After running:
Python Expansion pack installation (Scikit learn)