To be able to utilise the python wrapper around iperf3 you will need to have the shared library installed. Luckily this comes with the standard iperf3 build.

iperf3 utility

Preferably get the latest build from the iperf3 official website

Otherwise try your OS package manager:

  • Ubuntu:
sudo apt-get install iperf3
  • CentOS/RedHat
sudo yum install iperf3

iperf3 python wrapper

The preferred installation method is through PyPi (aka pip install)

pip install iperf3

If pip is unavailable for any reason you can also manually install from github:

git clone
cd iperf3-python
python3 test  # (optional) testing through py.test and/or tox
python3 install