# 使用 Homebrew, MacPorts, Nix, zypper 安装 ta-lib

查看 ta-lib 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:ta-lib
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ta-lib
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ta-lib
```

  证据: MacPorts ports tree: finance/ta-lib/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#ta-lib
```

  证据: nixpkgs package indexes: pkgs/by-name/ta/ta-lib/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install libta-devel
```

  证据: openSUSE Tumbleweed package metadata: libta-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:ta-lib
- **软件包管理器:** Homebrew
- **版本:** 0.7.1
- **来源摘要:** Tools for market analysis
- **主页:** <https://ta-lib.org/>
- **仓库:** <https://github.com/ta-lib/ta-lib>
- **最后更新:** 2026-07-03T18:16:41Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ta_regtest (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.7.1
## 项目历史与用法

TA-Lib is a technical-analysis library for financial-market data, centered on a C/C++ core and used from multiple language ecosystems through wrappers.

### 项目历史

The official site says TA-Lib was released in 2001 and that its algorithms remained widely used more than 20 years later. The GitHub README says the GitHub repository is now the official home for the C/C++ TA-Lib library, replacing SourceForge as the primary project home.

### 采用历史

The official site presents TA-Lib as open source under a BSD license and usable in open-source or commercial applications. It lists a C/C++ core with APIs or wrappers for Python and R on the current site, while older official positioning and bindings have made TA-Lib a common dependency in trading and data-analysis stacks.

### 使用方式

TA-Lib provides indicators such as ADX, MACD, RSI, Stochastic, and Bollinger Bands, plus candlestick-pattern recognition. Package-manager users mostly encounter the Homebrew formula as the native C library needed by higher-level Python, R, and other bindings.

### 为什么软件包爱好者会关心

It matters to package maintainers because many language packages expect the native TA-Lib library to be installed first. The upstream FAQ explicitly notes long-lived C/C++ code, stable functions, a stale-release period from 2014 to 2024, and recent packaging automation work.

### 时间线

- 2001: TA-Lib was released.
- 2014-2024: The official FAQ says releases went stale during this period.
- 2016: The TA-Lib/ta-lib GitHub repository was created.
- 2024: The official FAQ says work started to automate packaging with GitHub Actions.
- 2025: GitHub releases show v0.6.4 published on 2025-01-11.

### Related projects

- Official documentation points to the C/C++ core, Python and R wrappers, ta-lib-python, pandas-ta, and a proposal-drafts repository for new TA functions.

### 来源

- <https://api.github.com/repos/TA-Lib/ta-lib>
- <https://api.github.com/repos/TA-Lib/ta-lib/releases>
- <https://github.com/TA-Lib/ta-lib#readme>
- <https://ta-lib.org/>
- <https://ta-lib.org/faq/>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Nix - ta-lib: normalized package name match | nixpkgs package indexes: pkgs/by-name/ta/ta-lib/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- zypper - libta-devel - 0.4.0-1.19: normalized package name match | openSUSE Tumbleweed package metadata: libta-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Technical Analysis Library | https://ta-lib.org/
- zypper - libta_lib0 - 0.4.0-1.19: normalized package name match | openSUSE Tumbleweed package metadata: libta_lib0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Technical Analysis Library | https://ta-lib.org/
- MacPorts - ta-lib: normalized package name match | MacPorts ports tree: finance/ta-lib/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/ta-lib.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ta-lib.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
