0%

Windows安装Qlib

安装异常

1
2
Failed to build pyqlib
ERROR: Could not build wheels for pyqlib, which is required to install pyproject.toml-based projects
1
2
3
4
5
6
7
C:\Users\simon\AppData\Local\Temp\pip-build-env-uuivrj87\overlay\Lib\site-packages\Cython\Compiler\Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: D:\development\python\qlib\qlib\data\_libs\rolling.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyqlib

需要安装”Microsoft C++ Build Tools”。

需要更新安装 cython

1
pip install cython --upgrade