Installation
Qlib
Installation
Note
Qlib supports both Windows and Linux. It’s recommended to use Qlib in Linux. Qlib
supports Python3, which is up to Python3.8.
Users can easily install Qlib
by pip according to the following command:
pip install pyqlib
Also, Users can install Qlib
by the source code according to the following steps:
Enter the root directory of
Qlib
, in which the filesetup.py
exists.Then, please execute the following command to install the environment dependencies and install
Qlib
:$ pip install numpy $ pip install --upgrade cython $ git clone https://github.com/microsoft/qlib.git && cd qlib $ python setup.py install
Note
It’s recommended to use anaconda/miniconda to setup the environment. Qlib
needs lightgbm and pytorch packages, use pip to install them.
Use the following code to make sure the installation successful:
>>> import qlib
>>> qlib.__version__
<LATEST VERSION>