Before You Start

  • MindX SDKs apply to Ubuntu OS, CentOS, EulerOS, LinxOS, KylinOS, and many other OSs. For details about the MindX SDK software compatibility, see the mxManufacture User Guide or mxVision User Guide.
  • For a Python application project running in a remote operating environment, configure the operating environment before application development.
    LD_LIBRARY_PATH=$HOME/Ascend/ascend-toolkit/{version}/runtime/lib64:$LD_LIBRARY_PATH;PYTHONPATH=$HOME/Ascend/ascend-toolkit/{version}/python/site-packages/acl:$PYTHONPATH

    Set {version} as required. You can use either of the following methods:

    • Add the PYTHONPATH and Runtime paths to the .bashrc file in the operating environment.
    • During MindStudio build/run configuration, add environment variables in the Run/Debug Configuration function. For details, see Building and Running an Application Project.
    • Currently, MindStudio supports only mxManufacture and mxVision in the MindX SDK and does not support mxIndex.
    • The running of MindX SDKs depends on Python 3.9. Before installing CANN, ensure that Python 3.9 has been installed and the Python 3.9 environment variables have been configured.
    • Ensure that the driver package has been installed in the operating environment. Before starting MindStudio, manually run the set_env.sh script in Ascend-CANN-Toolkit and the MindX SDK installation directory in the operating environment to set environment variables. Replace the software installation path with the actual one. ({version} indicates the SDK software package version, and {arch} indicates the system architecture.)
      source $HOME/Ascend/mindx_sdk/mxManufacture_{version}/linux-{arch}/mxManufacture/set_env.sh
      source $HOME/Ascend/ascend-toolkit/set_env.sh

      Or

      source $HOME/Ascend/mindx_sdk/mxVision_{version}/linux-{arch}/mxVision/set_env.sh
      source $HOME/Ascend/ascend-toolkit/set_env.sh