Installation¶
Debian, Ubuntu, Raspberry Pi¶
PyTAK is distributed as a Debian package (.deb) and is compatible with Python 3.7 and later.
sudo apt update -qq
wget https://github.com/snstac/pytak/releases/latest/download/pytak_latest_all.deb
sudo apt install -f ./pytak_latest_all.deb
Optional: TAK Data Package support¶
Required for importing .zip pref packages (TLS certs, server settings):
Optional: TAK Protocol v1 (Protobuf) support¶
Required for Protobuf-encoded CoT (TAK_PROTO=1):
wget https://github.com/snstac/takproto/releases/latest/download/takproto_latest_all.deb
sudo apt install -f ./takproto_latest_all.deb
Optional: Marti REST API / certificate enrollment support¶
Required for marti:// transport and automatic tak:// certificate enrollment:
Docker Images¶
Prebuilt container images that install PyTAK from release packages are documented in Docker.
Python Package (pip)¶
Install from PyPI with pip. This works on any platform with Python 3.7+.
Optional extras¶
Install one or more optional extras to unlock additional features:
| Extra | Feature | Command |
|---|---|---|
with_crypto |
TAK Data Packages (.zip pref import) |
pip install pytak[with_crypto] |
with_takproto |
TAK Protocol v1 Protobuf | pip install pytak[with_takproto] |
with_aiohttp |
Marti REST API & cert enrollment | pip install pytak[with_aiohttp] |
Install everything at once:
System prerequisites¶
Some systems need libffi installed before pip can build certain dependencies:
Install from source¶
Windows¶
PyTAK works on Windows with standard Python 3.7+ from python.org.
UDP multicast on Windows
Windows restricts multicast socket binding. If udp:// (Mesh SA) does not work, use udp+wo:// (write-only) instead, or connect directly to a TAK Server via tcp:// or tls://.
Setting environment variables in PowerShell