Download and Installation¶
The following instructions are for user that just want to run MAVProxy. Developers should look at the Developer’s Guide for setting up the development environment.
MAVProxy is distributed as a Python package (see PyPI). A number of pre-requisite packages are required to run MAVProxy, as detailed in the individual sections below.
Windows¶
A complete windows installer (package) for MAVProxy is available at
http://firmware.ardupilot.org/Tools/MAVProxy/. The latest version is: MAVProxySetup-latest.exe. It is compatible
with Windows 7 or later.
A link to MAVProxy will be available on the start menu. MAVProxy can also be called from the commandline via mavproxy.exe
Note
Any references to “mavproxy.py” in this documentation should be replaced by “mavproxy.exe” on the Windows commandline.
Alternatively, Windows 10 users can use the Windows Subsystem for Linux (WSL) to run MAVProxy from a Linux environment within Windows. It generally provides better stability than the native Windows installer above.
Linux¶
For Debian based systems (including Ubuntu, WSL, Raspian):
sudo apt-get install python3-dev python3-opencv python3-wxgtk4.0 python3-pip python3-matplotlib python3-lxml python3-pygame
python3 -m pip install PyYAML mavproxy --user
echo 'export PATH="$PATH:$HOME/.local/bin"' >> ~/.bashrc
For Fedora based systems:
sudo dnf install python3-devel python3-opencv python3-wxpython4 python3-pip python3-matplotlib python3-pygame python3-lxml python3-yaml redhat-rpm-config
python3 -m pip install PyYAML mavproxy --user
echo 'export PATH="$PATH:$HOME/.local/bin"' >> ~/.bashrc
Note
If MAVProxy is intended to run “headless” (non-GUI), the python3-wxgtk4.0 or python3-wxpython4 packages can be skipped.
If you get a “permission denied” error message when connecting to serial devices, the user permissions may need to be changed:
sudo usermod -a -G dialout <username>
The system will need to be restarted to apply the above change.
Updating¶
To update an existing installation with the current release:
python3 -m pip install mavproxy pymavlink --user --upgrade
To update an existing installation with the current development version (ie, from its master branch):
python3 -m pip install mavproxy --user git+https://github.com/ArduPilot/mavproxy.git@master
Mac¶
Install Python with Homebrew:
brew install python
Homebrew’s current python formula installs Python 3.15. gnureadline is built from source on Python 3.15 and requires the Xcode Command Line Tools:
xcode-select --install
Alternatively, install python@3.14 with Homebrew and use $(brew --prefix python@3.14)/bin/python3.14 instead of the Python command below.
Install MAVProxy in a virtual environment. This avoids modifying the Homebrew-managed Python environment and prevents PEP 668 externally-managed-environment errors:
$(brew --prefix)/bin/python3 -m venv ~/venv-mavproxy
source ~/venv-mavproxy/bin/activate
python -m pip install --upgrade pip
python -m pip install MAVProxy wxPython gnureadline opencv-python matplotlib
mavproxy.py --version
The virtual environment must be activated with source ~/venv-mavproxy/bin/activate before running MAVProxy. To update this installation, activate the virtual environment and run:
python -m pip install --upgrade MAVProxy
Alternatively, install MAVProxy with pipx, which manages an isolated environment automatically:
brew install pipx
pipx ensurepath
Open a new Terminal window (or restart your shell) to load the updated PATH, then run:
pipx install MAVProxy
pipx inject MAVProxy wxPython gnureadline opencv-python matplotlib
mavproxy.py --version
To update the pipx installation, run:
pipx upgrade MAVProxy