Installing Dependency
Switch to the common user and perform the following operations:
- Run the following command to install the DDK dependency:
sudo -E apt-get install gcc g++ cmake make python-pip python3-pip python3 python
- Install the Python development environment.
- 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)
- Environment deployment depends on pip. Run the following commands to install the dependencies (numpy and decorator) of the TE software package respectively:
- 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)
- Environment deployment depends on pip3. Run the following commands to install the dependencies (numpy and decorator) of the TE software package respectively:
- 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
- Install the Python 2 environment.

- If the pip installation is abnormal during the dependency installation, rectify the fault by referring to What Do I Do If a Message Is Displayed Indicating pip2 or pip Unavailability During Mind Studio or DDK Installation?.
- The version numbers in the command outputs are only examples, which are subject to the actual situations.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot