Installing Dependencies
Installing Python Dependency
Install this dependency if you want to use the image input function during operator creation and sample project conversion.
- 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.
- Install Python 3.7.5 to the local environment.
- In the Windows 10 OS, choose Control Panel > System and Security > System > Advanced system settings. See Figure 1.
- In the System Properties dialog box displayed, click Environment Variables. See Figure 2.
- In the Environment Variables > User variables dialog box, select the Path variable and click Edit. See Figure 3.
- 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.
- Click OK.
- Open the CLI and enter the python -V command to check whether the Python version is 3.7.5.
- 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
- 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.
- Decompress the MinGW installation package to a custom directory.
- In the Windows 10 OS, choose Control Panel > System and Security > System > Advanced system settings. See Figure 5.
- In the System Properties dialog box displayed, click Environment Variables. See Figure 6.
- In the Environment Variables > System variables dialog box, select the Path variable and click Edit. See Figure 7.
- 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.
- 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
|
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.
- Double-click the software package. The page shown in Figure 9 is displayed. Click Next.
- Enter the End-User License Agreement window, click Next.Figure 10 End-User License Agreement
- Enter the Install Options window, select Add CMake to the system PATH for all users and click Next.Figure 11 Install Options
- Enter the Destination Folder window, select a folder, and then click Next.Figure 12 Destination Folder
- Enter the Ready to install CMake, click Install, and wait until the installation is complete.Figure 13 Ready to install CMake
- Enter the Completed the CMake Setup Wizard window, and click Finish to end the installation.Figure 14 Completed the CMake Setup Wizard








