本教程详细讲解Qlib安装过程
最后利用Jupyter Notebook对Qlib数据可视化配置
Jupyter Notebook中文设置
*************************************************************************
安装conda
https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/
安装好后,在开始菜单打开Anaconda Prompt (Miniconda3)
执行命令创建虚拟环境
conda create -n qlib_env python=3.9 -y
激活虚拟环境
conda activate qlib_env
安装Qlib
pip install pyqlib -i https://pypi.tuna.tsinghua.edu.cn/simple
确认Qlib的运行版本:
python -c “import qlib; print(‘Qlib version:’, qlib.__version__)”
到止qlib就安装好了,如果需要更多的模块,需把源码克隆下来
git clone https://github.com/microsoft/qlib.git
创建工作目录 mkdir d:\qlib_work
切换到工作目录 cd d:\qlib_work
可视化安装
安装分析依赖
pip install .[analysis]
如果国外不行就国内
pip install –user -i https://pypi.tuna.tsinghua.edu.cn/simple .[analysis]
————————————
运行jupyter notebook
jupyter notebook README.md
如:
jupyter notebook examples/workflow_by_code.ipynb
jupyter notebook 安装中文pip install jupyterlab-language-pack-zh-CN
—————————————-

