我正在安装ta-lib时遇到以下错误。我使用了以下命令:
请为我提供解决方案。
!pip install ta-lib
请为我提供解决方案。
Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Collecting ta-lib
Using cached TA-Lib-0.4.25.tar.gz (271 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in /usr/local/lib/python3.8/dist-packages (from ta-lib) (1.21.6)
Building wheels for collected packages: ta-lib
error: subprocess-exited-with-error
× Building wheel for ta-lib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Building wheel for ta-lib (pyproject.toml) ... error
ERROR: Failed building wheel for ta-lib
Failed to build ta-lib
ERROR: Could not build wheels for ta-lib, which is required to install pyproject.toml-based projects
我尝试了以下命令:
pip install --upgrade pip setuptools wheel
pip install pep517
!pip3 install --upgrade pip
!pip install pyproject-toml
pip install TA_Lib‑0.4.10‑cp35‑cp35m‑win_amd64.whl
!pip install ta-lib
gtar
时遇到了同样的问题,建议安装Microsoft Visual C++ 14.0或更高版本。但即使安装了MVC++ 17.4.5,仍然无法正常工作。 - dudung