# 使用 Homebrew, Nix 安装 coconut

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

## 安装

```sh
sudo av install brew:coconut
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install coconut
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#coconut
```

  证据: nixpkgs package indexes: coconut from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

## 软件包事实

- **软件包键:** brew:coconut
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/coconut>
- **版本:** 3.2.0
- **来源摘要:** Simple, elegant, Pythonic functional programming
- **主页:** <https://coconut-lang.org/>
- **上游文档:** <https://coconut-lang.org/>
- **许可证:** Apache-2.0
- **源码归档:** <https://files.pythonhosted.org/packages/06/f4/38f315a1d8568257a74fe482e925368a2ef4bccc9b1d5751f003570bccc5/coconut-3.2.0.tar.gz>
- **最后更新:** 2026-07-15T10:34:45Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- coconut (cli)
- coconut-py3 (cli)
- coconut-py3-run (cli)
- coconut-py3.14 (cli)
- coconut-py3.14-run (cli)
- coconut-release (cli)
- coconut-release-run (cli)
- coconut-run (cli)
- coconut-v3 (cli)
- coconut-v3-run (cli)
- coconut-v3.2 (cli)
- coconut-v3.2-run (cli)
- coconut-v3.2.0 (cli)
- coconut-v3.2.0-run (cli)
- coconut (别名)
- coconut-py3 (别名)
- coconut-py3-run (别名)
- coconut-py3.14 (别名)
- coconut-py3.14-run (别名)
- coconut-release (别名)
- coconut-release-run (别名)
- coconut-run (别名)
- coconut-v3 (别名)
- coconut-v3-run (别名)
- coconut-v3.2 (别名)
- coconut-v3.2-run (别名)
- coconut-v3.2.0 (别名)
- coconut-v3.2.0-run (别名)

## 依赖

- python@3.14

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.2.0
- 管理器更新时间: 2026-07-15
- 本地数据: OK
- 上游仓库: https://coconut-lang.org/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Coconut is a Python-family functional programming language and compiler. Its official documentation describes it as a strict superset of Python syntax that compiles to Python, adding functional features while remaining close to the Python ecosystem.

### 项目历史

The public GitHub repository was created in 2014, and the project positions itself as a language variant rather than a standalone runtime: Coconut source is compiled into Python code. The README and documentation emphasize GitHub development, PyPI hosting, and a language design centered on functional programming constructs such as pipes, pattern matching, partial application, and enhanced lambdas.

### 采用历史

Coconut's adoption has been strongest in Python package and language-experiment circles rather than as a mainstream application runtime. Official install guidance leads with pip, while the Homebrew input records distribution through Homebrew and Nix, showing that it also reached system package-manager catalogs used by CLI-oriented developers.

### 使用方式

Users install Coconut as a command-line compiler and run it to compile or execute Coconut source files. The official docs cover installation through pip, conda, and Homebrew, plus integrations for IPython/Jupyter, type checking, numpy, and xonsh.

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

For package nerds, Coconut is interesting as a small language toolchain that rides on Python packaging while also appearing in OS package managers. It shows the common pattern where an experimental language compiler starts with PyPI distribution and later becomes convenient to install through Homebrew or Nix for shell-first workflows.

### 时间线

- 2014: GitHub repository for evhub/coconut created.
- 2016: Public documentation and PyPI distribution were already central to the project.
- 2024: Coconut 3.1.x releases continued active maintenance.
- 2025: Coconut 3.2.0 added Python 3.14 support, according to the official release notes.

### Related projects

- Coconut is related to Python itself, PyPI packaging, IPython/Jupyter integration, xonsh integration, and the broader family of Python-compatible language extensions that compile down to Python.

### 来源

- <https://github.com/evhub/coconut>
- <https://coconut-lang.org/>
- <https://coconut.readthedocs.io/en/latest/DOCS.html>
- <https://github.com/evhub/coconut/releases>
- <https://pypi.org/project/coconut/>


## 安全说明

没有找到 coconut 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

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

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

- Nix - coconut: normalized package name match | nixpkgs package indexes: coconut from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [purescript](https://pkg.so/zh-hans/brew/purescript/) - Shares pkgdb curated category or tags: cli, compiler, functional-programming, language-runtime, programming-language.
- [koka](https://pkg.so/zh-hans/brew/koka/) - Shares pkgdb curated category or tags: cli, compiler, functional-programming, language-runtime, programming-language.
- [mercury](https://pkg.so/zh-hans/brew/mercury/) - Shares pkgdb curated category or tags: cli, compiler, functional-programming, language-runtime, programming-language.
- [never](https://pkg.so/zh-hans/brew/never/) - Shares pkgdb curated category or tags: cli, compiler, functional-programming, language-runtime, programming-language.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Shares pkgdb curated category or tags: cli, compiler, language-runtime, programming-language.
- [lua](https://pkg.so/zh-hans/brew/lua/) - Shares pkgdb curated category or tags: cli, compiler, language-runtime, programming-language.
- [elixir](https://pkg.so/zh-hans/brew/elixir/) - Shares pkgdb curated category or tags: cli, functional-programming, language-runtime, programming-language.
- [kotlin](https://pkg.so/zh-hans/brew/kotlin/) - Shares pkgdb curated category or tags: cli, compiler, language-runtime, programming-language.

## Combined YAML source

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


## 来源

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