Microsoft Open source distributed high-performance GB Framework LIGHTGBM installation using--python__python

Source: Internet
Author: User
Tags lapack

Recently wrote an article on "Microsoft Open source distributed high-performance GB Framework LIGHTGBM installation use," a small partner to install the Python environment encountered a problem. I personally try to install it, and I do have a lot of problems. first look at the hole you met.

(Linux environments may be simpler to solve, and Windows users are relatively troublesome):

PIP official website Foreign Mirror station cannot be accessed

python2.7.10 How to install Lapack
Windows scipy install:no Lapack/blas Resources Found
Python Installation Setuptools method
Pip install install the specified version of the package
Pip Install robotframework==2.8.7
Linux setup pip mirror pip warning:–trusted-host problem

How to install the. WHL package under Python.

How to change the PIP source to a domestic mirror to increase the download speed. Related solutions:

Python pip domestic Mirror Encyclopedia and use method

Windows7 Python's scipy library installation

Importerror:cannot Import Name Numpy_mkl

Windows7 set PIP mirror pip warning:–trusted-host problem solution
Getting to the point : Python package installation

1, LIGHTGBM EXE, DLL compilation

Reference: Microsoft open Source distributed high-performance GB Framework LIGHTGBM installation use

What to do without the VS environment. You can add my QQ group: it ten years (170273637), try I have compiled good.

Note: To save to the corresponding directory.

refer to my directory structure:

D:\LightGBM\LightGBM\windows\x64\Release\lightgbm.exe

D:\LightGBM\LightGBM\windows\x64\DLL\lib_lightgbm.dll

2, into the "python-package" directory, such as mine is: D:\LightGBM\LightGBM\python-package

3, installation

Python setup.py Install
May encounter problems, refer to the above relevant solutions.

4. Verify

New "test.py" file

# coding:utf-8
Import LIGHTGBM as LGB

print ("Install lib_lightgbm OK")
Open cmd to this directory, execute: Python test.py

See the output "Install LIB_LIGHTGBM OK" to indicate that the installation was successful. running the Python sample

Open cmd switch to "\lightgbm\examples\python-guide" directory, my is: D:\LightGBM\LightGBM\examples\python-guide

Execute sequentially:

Pip install-u scikit-learn
pip Install-u Pandas
You can now run the example in this folder, for example:

Python simple_example.py
The output is shown below:


Summary

Open source projects are a number of "Readme" files, this is the best help file, when playing open source project must see "Readme" file,

But some small partners may E-wen is not good, then hurriedly fill it, from now on, everything is not too late.

I am a python rookie, so I met a lot of problems, all of them have been sorted out, I hope to help.

If it helps you, just order it.

Not solved. Welcome message or add QQ Group: It ten years (170273637) discussion.

====================== Document Information ======================
Copyright Disclaimer: Non-commercial free reprint-keep the signature-indicate the source
Signature (by): testcs_dn (micro WX Laugh)
Article source: [Ignorant life, record bit] (HTTP://BLOG.CSDN.NET/TESTCS_DN)

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.