1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-06-06 05:51:17 +08:00
Files
qlib/docs/start/installation.rst
2020-09-22 01:43:21 +00:00

44 lines
936 B
ReStructuredText

.. _installation:
====================
Installation
====================
.. currentmodule:: qlib
How to Install ``Qlib``
====================
``Qlib`` only supports Python3, and supports up to Python3.8.
Please execute the following process to install ``Qlib``:
- Change the directory to ``Qlib``, in which the file ``setup.py`` exists.
- Then, please execute the following command:
.. code-block:: bash
$ pip install numpy
$ pip install --upgrade cython
$ python setup.py install
.. note::
It's recommended to use anaconda/miniconda to setup environment.
``Qlib`` needs lightgbm and tensorflow packages, use pip to install them.
.. note::
Do not import qlib in the repository folder which contains ``qlib``, otherwise errors may occur.
Use the following code to confirm installation successful:
.. code-block:: python
>>> import qlib
>>> qlib.__version__
<LATEST VERSION>