1、Qlib安装
Qlib安装容易失败
1.python 版本:Python 3.8.20
2.安装如下:
pip install numpy pandas scipy scikit-learn Cython joblib
pip install pyqlib
3.测试代码测试
1.
mkdir -p ~/.qlib/qlib_data/cn_data
测试代码
import qlib
from qlib.config import REG_CNprovider_uri = "~/.qlib/qlib_data/cn_data"
qlib.init(provider_uri=provider_uri, region=REG_CN)print("Qlib 初始化成功!")