Updated on 2022-03-13 GMT+08:00

Installing Dependency

Switch to the common user and perform the following operations:

  1. Run the following command to install the DDK dependency:

    sudo -E apt-get install gcc g++ cmake make python-pip python3-pip python3 python

  2. Install the Python development environment.

    1. Install the Python 2 environment.
      • Environment deployment depends on pip. Run the following commands to install the dependencies (numpy and decorator) of the TE software package respectively:
        $ pip2 install numpy==1.16.0 --user
        $ pip2 install decorator --user
      • Check the Python 2 environment.
        Run the following commands to check Python and pip, respectively:
        $ python2 --version
        $ pip2 --version

        If the following information is displayed respectively for the preceding three commands, the installation is successful:

        Python 2.7.5
        pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)
    2. Install the Python 3 (3.5+) environment.
      • Environment deployment depends on pip3. Run the following commands to install the dependencies (numpy and decorator) of the TE software package respectively:
        $ pip3 install numpy==1.16.0 --user
        $ pip3 install decorator --user
      • Check the Python 3 (3.5+) environment.
        Run the following commands to check the Python 3 and pip3, respectively:
        $ python3 --version
        $ pip3 --version

        If the following information is displayed respectively for the preceding three commands, the installation is successful:

        Python 3.5.2
        pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.5)
    3. Switch to the root user and run the following commands to install the setuptools dependency of Python 2 and Python 3:
      $ pip2 install setuptools==41.0.1
      $ pip3 install setuptools==41.0.1