# 使用 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
- **版本:** 1.1.411
- **来源摘要:** Static type checker for Python
- **主页:** <https://github.com/microsoft/pyright>
- **最后更新:** 2026-06-26T06:34:31Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.1.411

## 安全说明

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
## 其他软件包管理器记录

- 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


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