Installing Dependencies

Installing Python Dependency

Install this dependency if you want to use the image input function during operator creation and sample project conversion.

  1. Download the Python installation package from the Python official website to a local Windows OS.

    MindStudio supports Python 3.7 to 3.9. The following describes how to install the Python 3.7.5 dependency package.

  2. Install Python 3.7.5 to the local environment.
  3. In the Windows 10 OS, choose Control Panel > System and Security > System > Advanced system settings. See Figure 1.
    Figure 1 Advance system settings
  4. In the System Properties dialog box displayed, click Environment Variables. See Figure 2.
    Figure 2 Environment variables
  5. In the Environment Variables > User variables dialog box, select the Path variable and click Edit. See Figure 3.
    Figure 3 Editing the Path environment variable
  6. In the Edit environment variable dialog box, click New, enter the paths of the Python 3.7.5 installation package directory and script directory, for example, D:\python and D:\python\Scripts, and click OK. See Figure 4.
    Figure 4 Creating an environment variable
  7. Click OK.
  8. Open the CLI and enter the python -V command to check whether the Python version is 3.7.5.
  9. Install the Python 3 dependencies.

    Before the installation, you are advised to run the d:\python\python.exe -m pip3 install --upgrade pip command to perform the upgrade to prevent the installation failure caused by an earlier pip version.

    pip3 install xlrd==1.2.0 
    pip3 install absl-py
    pip3 install numpy
    pip3 install requests

    If the following information is displayed, the installation is successful:

    Successfully installed xlrd-1.2.0
    Successfully installed absl-py-0.12.0 six-1.15.0
    Successfully installed numpy-1.20.1
    Successfully installed request-2.28.0

Installing MinGW Dependency

  1. Download the latest MinGW installation package from https://sourceforge.net/projects/mingw-w64/files/. Select a version based on the OS. For example, select x86_64-posix-seh for a 64-bit OS.
  2. Decompress the MinGW installation package to a custom directory.
  3. In the Windows 10 OS, choose Control Panel > System and Security > System > Advanced system settings. See Figure 5.
    Figure 5 Advance system settings
  4. In the System Properties dialog box displayed, click Environment Variables. See Figure 6.
    Figure 6 Environment variables
  5. In the Environment Variables > System variables dialog box, select the Path variable and click Edit. See Figure 7.
    Figure 7 Editing the Path environment variable
  6. In the Edit environment variable dialog box, click New, enter the path of the bin directory generated after the MinGW installation package is decompressed, for example, D:\mingw64\bin, and click OK. See Figure 8.
    Figure 8 Creating an environment variable
  7. Open the CLI and enter the gcc -v command.

    If message "gcc version x.x.x (x86_64-win32-seh-rev0, Built by MinGW-W64 project)" is displayed, the installation is successful.

Installing CMake

Table 1 Dependencies

Name

Version

Description

How to Obtain

CMake

3.16.5-win64-x64 (recommended)

CMake is a cross-platform free and open-source software tool for managing the build process of software using a compiler-independent method. It supports directory hierarchies and apps that depend on multiple libraries.

Download it from the CMake website.

You can log in to the CMake official website to download CMake. Perform the following steps to install it. An example of MSI package is provided.

  1. Double-click the software package. The page shown in Figure 9 is displayed. Click Next.
    Figure 9 CMake Setup
  2. Enter the End-User License Agreement window, click Next.
    Figure 10 End-User License Agreement
  3. Enter the Install Options window, select Add CMake to the system PATH for all users and click Next.
    Figure 11 Install Options
  4. Enter the Destination Folder window, select a folder, and then click Next.
    Figure 12 Destination Folder
  5. Enter the Ready to install CMake, click Install, and wait until the installation is complete.
    Figure 13 Ready to install CMake
  6. Enter the Completed the CMake Setup Wizard window, and click Finish to end the installation.
    Figure 14 Completed the CMake Setup Wizard