# 安装

xlswriter 是一个 PHP C 扩展，推荐通过 PECL 安装；如需自行编译，本节也覆盖了主流系统下的源码安装步骤。

本节内容：

* [环境要求](/zhong-wen-jian-ti/install/requirements.md)
* [PECL（推荐）](/zhong-wen-jian-ti/install/pecl.md)
* [Mac](/zhong-wen-jian-ti/install/mac.md)
* [Ubuntu](/zhong-wen-jian-ti/install/ubuntu.md)
* [Alpine](/zhong-wen-jian-ti/install/alpine.md)
* [Windows](/zhong-wen-jian-ti/install/windows.md)
* [Docker 多阶构建](/zhong-wen-jian-ti/install/docker.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xlswriter-docs.viest.me/zhong-wen-jian-ti/install.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
