Help Center/ ModelArts/ DevEnviron/ ModelArts CLI Command Reference/ (Optional) Installing ma-cli Locally
Updated on 2024-06-12 GMT+08:00

(Optional) Installing ma-cli Locally

Application Scenarios

This document describes how to install ma-cli on Windows.

Step 1: Install ModelArts SDKs

Install ModelArts SDKs by referring to ModelArts SDK Reference > Preparations > Installing the ModelArts SDK Locally.

Step 2: Download ma-cli

  1. .
  2. Verify the software package signature.
    1. .
    2. Install OpenSSL and run the following command to verify the signature:
      openssl cms -verify -binary -in D:\ma_cli-latest-py3-none-any.whl.cms -inform DER -content D:\ma_cli-latest-py3-none-any.whl  -noverify > ./test

      In this example, the software package is stored in D:\. Replace it with the actual path.

Step 3: Install ma-cli

  1. Run python --version in the command prompt of your local environment to check whether Python has been installed. The Python version must be later than 3.7.x and earlier than 3.10.x. Version 3.7.x is recommended.
    C:\Users\xxx>python --version
    Python *.*.*
  2. Run pip --version to check whether the general package management tool pip is available.
    C:\Users\xxx>pip --version
    pip **.*.* from c:\users\xxx\appdata\local\programs\python\python**\lib\site-packages\pip (python *.*)
  3. Install ma-cli.

    pip install {Path to the ma-cli software package}\ma_cli-latest-py3-none-any.whl

    C:\Users\xxx>pip install C:\Users\xxx\Downloads\ma_cli-latest-py3-none-any.whl
    ......
    Successfully installed ma_cli.*.*.*

    When ma-cli is installed, dependency packages are installed by default. If message "Successfully installed" is displayed, ma-cli has been installed.

    If an error message is displayed during the installation, indicating that a dependency package is missing, run the following command to install the dependency package as prompted:

    pip install xxxx

    xxxx is the name of the dependency package.