# 使用 Homebrew, MacPorts, Nix, pacman 安装 pyright

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

## 安装

```sh
sudo av install brew:pyright
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install pyright
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install pyright
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#pyright
```

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

- pacman (92%):

```sh
sudo pacman -S pyright
```

  证据: Arch Linux sync databases: pyright from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:pyright
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/pyright>
- **版本:** 1.1.411
- **来源摘要:** Static type checker for Python
- **主页:** <https://github.com/microsoft/pyright>
- **仓库:** <https://github.com/microsoft/pyright>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/pyright/-/pyright-1.1.411.tgz>
- **最后更新:** 2026-06-26T06:34:31Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- pyright (cli)
- pyright-langserver (cli)
- pyright (别名)
- pyright-langserver (别名)

## 依赖

- node

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.1.411
- 管理器更新时间: 2026-06-26
- 本地数据: OK
- 上游仓库: https://github.com/microsoft/pyright
- 信息: No cached GitHub release or tag data was available.

## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: pyrightconfig.json, pyproject.toml
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** pyright
- **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 - pyright: normalized package name match | nixpkgs package indexes: pkgs/by-name/py/pyright/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - pyright - 1.1.411-1: normalized package name match | Arch Linux sync databases: pyright from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Type checker for the Python language | https://microsoft.github.io/pyright
- MacPorts - pyright: normalized package name match | MacPorts ports tree: devel/pyright/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [node](https://pkg.so/zh-hans/brew/node/) - Runtime dependency declared by Homebrew.
- [pyrefly](https://pkg.so/zh-hans/brew/pyrefly/) - Shares pkgdb curated category or tags: cli, developer-tools, language-server, python, static-analysis.
- [mypy](https://pkg.so/zh-hans/brew/mypy/) - Shares pkgdb curated category or tags: cli, developer-tools, python, static-analysis, type-checker.
- [basedpyright](https://pkg.so/zh-hans/brew/basedpyright/) - Shares pkgdb curated category or tags: cli, developer-tools, language-server, python, static-analysis.
- [pylyzer](https://pkg.so/zh-hans/brew/pylyzer/) - Shares pkgdb curated category or tags: cli, developer-tools, language-server, python, static-analysis.
- [pylint](https://pkg.so/zh-hans/brew/pylint/) - Shares pkgdb curated category or tags: cli, developer-tools, python, static-analysis.
- [python-lsp-server](https://pkg.so/zh-hans/brew/python-lsp-server/) - Shares pkgdb curated category or tags: cli, developer-tools, language-server, python, static-analysis.
- [pyscn](https://pkg.so/zh-hans/brew/pyscn/) - Shares pkgdb curated category or tags: cli, developer-tools, python, static-analysis.
- [psalm](https://pkg.so/zh-hans/brew/psalm/) - Shares pkgdb curated category or tags: cli, developer-tools, language-server, static-analysis.
- [pyright](https://pkg.so/zh-hans/npm/pyright/) - Same normalized package name appears in another local ecosystem. Shared terms: checker, cli, developer, developer-tools, langserver.
- [pyright](https://pkg.so/zh-hans/npm/pyright/) - Same normalized package name in another local ecosystem.

## Combined YAML source

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


## 来源

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