Sklearn Source installation under Windows

Source: Internet
Author: User

Brief introduction

Under Windows compile Sklearn source code, the main note two points:

    1. Building a compilation environment
    2. Compilation order
Building a compilation environment

If the environment is not well built, the most common error is "error:unable to find Vcvarsall.bat"

In Python 3.5, for example, when VisualStudio is installed by default, Python tools is not typically selected, so reinstall VisualStudio, select Custom, and tick the following options.

Compilation order
    1. Compiling Sklearn source code

Python setup.py build_ext-i

    1. Install Sklearn Source code

Python setup.py Install

Be sure to use the Build_ext command, if you start with install, that's okay, use Build_ext again, and finally use install.

Reference:

    1. Error:unable to find Vcvarsall.bat
    2. Python 3.5 Fix Unable to find Vcvarsall.bat
    3. Installing Scikit-image

Sklearn Source installation under Windows

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.