# 使用 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/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## 软件包事实

- **软件包键:** brew:ta-lib
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ta-lib>
- **版本:** 0.7.1
- **来源摘要:** Tools for market analysis
- **主页:** <https://ta-lib.org/>
- **仓库:** <https://github.com/ta-lib/ta-lib>
- **上游文档:** <https://ta-lib.org/>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://github.com/ta-lib/ta-lib/releases/download/v0.7.1/ta-lib-0.7.1-src.tar.gz>
- **最后更新:** 2026-07-03T18:16:41Z
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- ta_regtest (cli)
- ta_regtest (别名)

## 构建依赖

- autoconf
- automake
- libtool

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.7.1
- 管理器更新时间: 2026-07-03
- 本地数据: OK
- 上游仓库: https://github.com/ta-lib/ta-lib
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ta-lib
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- 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.17: normalized package name match | openSUSE Tumbleweed package metadata: libta-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Technical Analysis Library | https://ta-lib.org/
- zypper - libta_lib0 - 0.4.0-1.17: normalized package name match | openSUSE Tumbleweed package metadata: libta_lib0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-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


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Database and data packages](https://www.automicvault.com/zh-hans/pkg/database-data-tools/) - Matched database, SQL, migration, or data-store metadata.
- [autoconf](https://www.automicvault.com/zh-hans/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/zh-hans/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [libtool](https://www.automicvault.com/zh-hans/pkg/brew/libtool/) - Build dependency declared by Homebrew.
- [mdz](https://www.automicvault.com/zh-hans/pkg/brew/mdz/) - Shares av.db curated category or tags: cli, data, finance.
- [aqbanking](https://www.automicvault.com/zh-hans/pkg/brew/aqbanking/) - Shares av.db curated category or tags: cli, data, finance.
- [fred](https://www.automicvault.com/zh-hans/pkg/brew/fred/) - Shares av.db curated category or tags: cli, data, finance.
- [heatshrink](https://www.automicvault.com/zh-hans/pkg/brew/heatshrink/) - Shares av.db curated category or tags: c-library, cli, data.
- [libgeotiff](https://www.automicvault.com/zh-hans/pkg/brew/libgeotiff/) - Shares av.db curated category or tags: c-library, cli, data.
- [libgetdata](https://www.automicvault.com/zh-hans/pkg/brew/libgetdata/) - Shares av.db curated category or tags: c-library, cli, data.
- [liborigin](https://www.automicvault.com/zh-hans/pkg/brew/liborigin/) - Shares av.db curated category or tags: c-library, cli, data.
- [libxls](https://www.automicvault.com/zh-hans/pkg/brew/libxls/) - Shares av.db curated category or tags: c-library, cli, data.

## Combined YAML source

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


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
