Python Expansion pack installation (Scikit learn)

Source: Internet
Author: User

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)

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.