安装 TA-Lib 时遇到的问题通常与系统缺少必要的编译依赖项或者内存不足有关。以下是一些解决步骤,你可以按照这些步骤尝试解决问题:
问题描述:编译安装Tal-ib库出现以下问题:
root@tianbaobao12:~/shipan/ta-lib# pip install ta-lib
Collecting ta-libUsing cached TA-Lib-0.4.31.tar.gz (368 kB)Installing build dependencies ... doneGetting requirements to build wheel ... donePreparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from ta-lib) (1.26.4)
Building wheels for collected packages: ta-libBuilding wheel for ta-lib (pyproject.toml) ... errorerror: subprocess-exited-with-error× Building wheel for ta-lib (pyproject.toml) did not run successfully.│ exit code: 1╰─> [25 lines of output]running bdist_wheelrunning buildrunning build_pycreating buildcreating build/lib.linux-x86_64-3.10creating build/lib