# 下载和安装

## 下载和安装[¶](https://ardupilot.org/mavproxy/docs/getting_started/download_and_installation.html#download-and-installation)

以下说明适用于只想运行 MAVProxy 的用户。开发人员应查看[开发人员指南](https://ardupilot.org/mavproxy/docs/development/index.html#mavproxy-development)以设置开发环境。

MAVProxy作为Python包分发（参见[PyPI）。](https://pypi.org/project/MAVProxy/) 运行 MAVProxy 需要许多先决条件包，详见以下各节。

### 窗户[¶](https://ardupilot.org/mavproxy/docs/getting_started/download_and_installation.html#windows)

MAVProxy的完整Windows安装程序（软件包）可在 <http://firmware.ardupilot.org/Tools/MAVProxy/> 获得。最新版本是：。它是兼容的 与 Windows 7 或更高版本一起使用。`MAVProxySetup-latest.exe`

MAVProxy的链接将在开始菜单上提供。马夫普罗克西罐 也可以通过 mavproxy 从命令行调用.exe

注意

本文档中对“mavproxy.py”的任何引用都应是 在 Windows 命令行上替换为“mavproxy.exe”。

或者，Windows 10用户可以使用Windows Subsystem for Linux（WSL）从Linux环境运行MAVProxy。 在视窗中。它通常提供比上面的本机Windows安装程序更好的稳定性。

### Linux目录[¶](https://ardupilot.org/mavproxy/docs/getting_started/download_and_installation.html#linux)

对于基于 Debian 的系统（包括 Ubuntu、WSL、Raspian）：

```
sudo apt-get install python3-dev python3-opencv python3-wxgtk4.0 python3-pip python3-matplotlib python3-lxml python3-pygame
pip3 install PyYAML mavproxy --user
echo 'export PATH="$PATH:$HOME/.local/bin"' >> ~/.bashrc
```

对于基于 Fedora 的系统：

```
sudo dnf install python3-devel python3-opencv python3-wxpython4 python3-pip python3-matplotlib python3-pygame python3-lxml python3-yaml redhat-rpm-config
pip3 install PyYAML mavproxy --user
echo 'export PATH="$PATH:$HOME/.local/bin"' >> ~/.bashrc
```

如果在连接到串行设备时收到“权限被拒绝”错误消息， 可能需要更改用户权限：

```
sudo usermod -a -G dialout <username>
```

需要重新启动系统才能应用上述更改。

#### 更新[¶](https://ardupilot.org/mavproxy/docs/getting_started/download_and_installation.html#updating)

要使用当前版本更新现有安装，请执行以下操作：

```
pip3 install mavproxy pymavlink --user --upgrade
```

要使用当前开发版本（即，从其主分支）更新现有安装，请执行以下操作：

```
pip3 install mavproxy --user git+https://github.com/ArduPilot/mavproxy.git@master
```

### 苹果电脑[¶](https://ardupilot.org/mavproxy/docs/getting_started/download_and_installation.html#mac)

通过以下方式安装 Python

```
brew install python --framework
```

卸载python-dateutil（OSX和Windows捆绑了某些依赖项不支持的版本）：

```
sudo pip3 uninstall python-dateutil
```

从公共 PyPi 存储库安装 MAVProxy 及其其余依赖项：

```
sudo pip3 install wxPython
sudo pip3 install gnureadline
sudo pip3 install billiard
sudo pip3 install numpy pyparsing
sudo pip3 install MAVProxy
```

[以前](https://ardupilot.org/mavproxy/docs/getting_started/index.html)[下一个](https://ardupilot.org/mavproxy/docs/getting_started/quickstart.html)<br>


---

# 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://yuelan-icus-organization.gitbook.io/mav-dai-li/kai-shi/xia-zai-he-an-zhuang.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.
