我在 pip 安装 ta-lib 时遇到以下错误。\n我使用了命令:
\n!pip install ta-lib\n
Run Code Online (Sandbox Code Playgroud)\n请为我提供解决方案。
\n Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\nCollecting ta-lib\n Using cached TA-Lib-0.4.25.tar.gz (271 kB)\n Installing build dependencies ... done\n Getting requirements to build wheel ... done\n Installing backend dependencies ... done\n Preparing metadata (pyproject.toml) ... done\nRequirement already satisfied: numpy in /usr/local/lib/python3.8/dist-packages (from ta-lib) (1.21.6)\nBuilding wheels for collected packages: ta-lib\n error: subprocess-exited-with-error\n \n \xc3\x97 Building wheel for ta-lib (pyproject.toml) did not run successfully.\n \xe2\x94\x82 exit code: 1\n \xe2\x95\xb0\xe2\x94\x80> See above for output.\n …
Run Code Online (Sandbox Code Playgroud) python artificial-intelligence algorithmic-trading technical-indicator