Preparing Software

Follow the steps below to prepare software environment:
  1. Execute the following command to preparing software:
    sudo apt-get install -y curl git udev libxml2-dev autoconf automake autotools-dev icu-devtools libicu-dev libsigsegv2 m4 autoconf-archive gnu-standards libtool gettext m4 make cmake build-essential pkg-config bison flex libtool nodejs libbz2-dev sqlite3 libgdbm-dev openssl libexpat1-dev python${version}-dev python2 python2-dev
    Note: The version in python${version} indicates the current version of python, which can be found at python3 -V; the official default is 3.10.
    Figure 1. Python Version
  2. Install pip for python2.7 and python3:
    curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip-2.7.py && sudo python2.7 get-pip-2.7.py
    curl https://bootstrap.pypa.io/pip/get-pip.py --output get-pip-3.py && sudo python3 get-pip-3.py
  3. Install python packages:
    sudo pip2 install flask
    sudo pip2 install flask-login
    sudo pip2 install pyserial
    sudo pip2 install pymodbus
    sudo pip3 install pymodbus==2.5.3