Unverified Commit 0d45ebd6 authored by Guolin Ke's avatar Guolin Ke Committed by GitHub
Browse files

[docs] Simplify the python installation instruction (#3378)

* Update Python-Intro.rst

* Update README.rst
parent 0c708d37
...@@ -14,14 +14,13 @@ This document gives a basic walkthrough of LightGBM Python-package. ...@@ -14,14 +14,13 @@ This document gives a basic walkthrough of LightGBM Python-package.
Install Install
------- -------
Install Python-package dependencies, You can install LightGBM via pip
``setuptools``, ``wheel``, ``numpy`` and ``scipy`` are required, ``scikit-learn`` is required for sklearn interface and recommended:
:: ::
pip install setuptools wheel numpy scipy scikit-learn -U pip install lightgbm
Refer to `Python-package`_ folder for the installation guide. Refer to `Python-package`_ folder for the detailed installation guide.
To verify your installation, try to ``import lightgbm`` in Python: To verify your installation, try to ``import lightgbm`` in Python:
......
...@@ -16,6 +16,13 @@ Preparation ...@@ -16,6 +16,13 @@ Preparation
Install from `PyPI <https://pypi.org/project/lightgbm>`_ Using ``pip`` Install from `PyPI <https://pypi.org/project/lightgbm>`_ Using ``pip``
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
.. code:: sh
pip install lightgbm
You may need to install `wheel <https://pythonwheels.com>`_ via ``pip install wheel`` first.
For **Windows** users, `VC runtime <https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads>`_ is needed if **Visual Studio** (2015 or newer) is not installed. For **Windows** users, `VC runtime <https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads>`_ is needed if **Visual Studio** (2015 or newer) is not installed.
For **Linux** users, **glibc** >= 2.14 is required. For **Linux** users, **glibc** >= 2.14 is required.
...@@ -28,11 +35,6 @@ For **macOS** (we provide wheels for 3 newest macOS versions) users: ...@@ -28,11 +35,6 @@ For **macOS** (we provide wheels for 3 newest macOS versions) users:
- For version smaller than 2.1.2, **gcc-7** with **OpenMP** is required. - For version smaller than 2.1.2, **gcc-7** with **OpenMP** is required.
Install `wheel <https://pythonwheels.com>`_ via ``pip install wheel`` first. After that download the wheel file and install from it:
.. code:: sh
pip install lightgbm
Build from Sources Build from Sources
****************** ******************
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment