# 使用 Homebrew 安装 wxpython

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

## 安装

```sh
sudo av install brew:wxpython
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install wxpython
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:wxpython
- **软件包管理器:** Homebrew
- **版本:** 4.3.1
- **来源摘要:** Python bindings for wxWidgets
- **主页:** <https://www.wxpython.org/>
- **最后更新:** 2026-07-31T07:12:58Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- helpviewer (别名)
- img2png (别名)
- img2py (别名)
- img2xpm (别名)
- pycrust (别名)
- pyshell (别名)
- pyslices (别名)
- pyslicesshell (别名)
- pywxrc (别名)
- wxdemo (别名)
- wxdocs (别名)
- wxget (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

wxPython is the Python binding for wxWidgets, giving Python applications native GUI widgets on Windows, macOS, Linux, and other Unix-like systems. Its history spans hand-written bindings in the 1990s, SWIG-generated Classic wxPython, and the Phoenix rewrite used by modern wxPython 4.x.

### 项目历史

The official history says wxPython began in 1996, after Robin Dunn discovered Python bindings while evaluating cross-platform GUI toolkits. Dunn worked with Harri Pasanen, with help from Edward Zimmerman, to advance early wxWidgets bindings into wxPython 0.2.

The first versions were maintained by hand, which became fragile as the codebase grew. In 1997 Dunn used SWIG to reimplement the bindings, and in summer 1998 the first modern wxPython release appeared for wxWidgets 2.0. The changelog still goes back to release 0.3 in 1998.

Project Phoenix later replaced Classic wxPython with a from-the-ground-up implementation focused on speed, maintainability, extensibility, Python 3 compatibility, and removing accumulated cruft. The official overview notes that Phoenix is intentionally not fully backwards compatible, though many applications can migrate with minor changes.

### 采用历史

wxPython became one of Python's major desktop GUI choices alongside Tkinter, PyQt/PySide, and later web-driven app shells. Its appeal was always native widgets with little platform-specific code, backed by wxWidgets rather than an emulated toolkit.

The Phoenix transition was also an adoption transition: users had to move old Classic code to Python 3-era APIs. The official docs still foreground the Migration Guide for programmers porting from Classic wxPython to Phoenix.

### 使用方式

Developers import wx, create a wx.App, instantiate frames and controls, bind events, and run MainLoop. The package also includes demo, shell, resource, image-conversion, documentation, and inspection-oriented tools that make it useful as a full GUI development environment rather than just a runtime binding.

In packaging, wxPython is notable because it wraps a large C++ GUI toolkit and ships platform-specific wheels or builds tied to wxWidgets versions. The changelog records ongoing work to keep pace with Python, wxWidgets, operating-system, and build-tool changes.

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

wxPython is package-nerd significant because it is a classic binding package: a large native-code bridge that lets a high-level language use a mature C++ toolkit. Its Classic-to-Phoenix migration is a textbook example of how language runtimes, binding generators, binary wheels, and GUI frameworks force long-lived packages to reinvent themselves.

### 时间线

- 1995: Robin Dunn discovered wxWidgets and Python while looking for a cross-platform C++ GUI toolkit.
- 1996: Official history dates the start of wxPython history to before the turn of the century, back in 1996.
- 1997: SWIG was adopted to reduce the maintenance burden of hand-written bindings.
- 1998: The first modern wxPython release appeared in summer 1998; the changelog goes back to 0.3.
- 2010s: Project Phoenix rebuilt wxPython for maintainability and Python 3.
- 2025-04-09: wxPython 4.2.3 released, built on wxWidgets 3.2.7.
- 2026-02-08: wxPython 4.2.5 released, built on wxWidgets 3.2.9.

### Related projects

- wxPython is related to wxWidgets, Project Phoenix, Classic wxPython, SWIG, Tkinter, PyQt/PySide, wxGlade, wxFormBuilder, and Python desktop GUI applications.

### 来源

- <https://docs.wxpython.org/MigrationGuide.html>
- <https://github.com/wxWidgets/Phoenix>
- <https://wiki.wxpython.org/RobinDunn>
- <https://wxpython.org/pages/changes/index.html>
- <https://wxpython.org/pages/history/>
- <https://wxpython.org/pages/overview/index.html>


## 安全说明

broad file, network, media, or database tool signal. generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- broad file, network, media, or database tool signal
- generalized runtime or code generation signal


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
