# 使用 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
- **版本:** 3.2.0
- **来源摘要:** Simple, elegant, Pythonic functional programming
- **主页:** <https://coconut-lang.org/>
- **最后更新:** 2026-07-15T10:34:45Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- 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 (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


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

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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
