Install Scikit Learn and Python's various packages under Windows

Source: Internet
Author: User
Tags virtualenv

Each installation is incomplete, this configuration is problematic, so decided to install from the beginning.

First, the Windows7 32-bit system.


First installs the python2.7, the official website downloads, installs the path is c:\python2.7


Because the installation is not complete before, but I have configured the environment variables such as parameters. specific path add C:\Python27; C:\Python27\Scripts, while Pythonpath add C:\Python27; C:\Python27\Lib; C:\Python27\DLLs; C:\PYTHON27\LIB\LIB-TK, these.


Then install the setuptools and download the Setuptools-0.6c11.win32-py2.7.exe

After running, look at the console to see if the installation is successful,

Easy_install virtualenv

A message similar to the following appears:

Searching for virtualenv
Best Match:virtualenv 1.7.2
Processing Virtualenv-1.7.2-py2.7.egg
Virtualenv 1.7.2 is already the active version in Easy-install.pth
Installing virtualenv-script.py script to D:\Program files\python2.7\scripts
Installing Virtualenv.exe script to D:\Program files\python2.7\scripts
Installing Virtualenv.exe.manifest script to D:\Program files\python2.7\scripts
Installing virtualenv-2.7-script.py script to D:\Program files\python2.7\scripts

Installing Virtualenv-2.7.exe script to D:\Program files\python2.7\scripts
Installing Virtualenv-2.7.exe.manifest script to D:\Program FILES\PYTHON2.7\SCRI
Pts

Using D:\Program Files\python2.7\lib\site-packages\virtualenv-1.7.2-py2.7.egg
Processing dependencies for Virtualenv
Finished processing dependencies for virtualenv



Install NumPy


Easy_install NumPy


And so on, and so on, the other dependencies, basically, is Easy_install libname


Many people on the internet said that when the installation of matplotlib, I download, I see the message is automatically downloaded and installed, so the previous download of the package is not used. It's still good.


So I installed numpy,scipy,matplotlib and then Easy_install Scikit-learn.

Then, running an example, came out of a picture and thumped it.


Details can refer to the installation of the blog http://www.cnblogs.com/zhuyp1015/archive/2012/07/17/2596495.html, write very detailed, if the error can also have other installation methods.

Scikit-learn installation can refer to here: http://blog.csdn.net/wbgxx333/article/details/12168675









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.