Installing the 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.
  4. In the System Properties dialog box displayed, click Environment Variables. See Figure 1.
    Figure 1 Environment variables
  5. In the Environment Variables > User variables dialog box, select the Path variable and click Edit. See Figure 2.
    Figure 2 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.
  7. Open the CLI and enter the python -V command to check whether the Python version is 3.7.5.
  8. 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