MindStudio Profiler Analyze Installation Guide¶
You can install MindStudio Profiler Analyze (msprof-analyze) by using pip, installing a WHL package, or building from source.
Installation Using pip¶
To install a specific version, run the pip install msprof-analyze==version_number command. Use the CANN version number corresponding to the profiling tool used for data collection.
If the version number is unknown, omit the version specification to use the latest program package.
The pip command automatically installs the latest package and the required dependencies.
If the following information is displayed, the installation is successful:
Installation Using a WHL Package¶
-
Obtain the WHL package. Download the WHL package from the Release Package Download Links section in Release Notes.
-
Verify the WHL package.
Go to the directory containing the WHL package and run the following command:
{name} indicates the name of the WHL package.
If the command output displays a checksum that matches the corresponding WHL package version, the correct msprof-analyze installation package has been downloaded. The following is an example:
- Install the WHL package.
Run the following command for installation:
If the following information is displayed, the installation is successful:
Building from Source¶
- Install the dependencies.
Before building from source, install wheel.
- Download the source code.
- Build the WHL package.
[!NOTE]NOTE
When installing the following dependencies, use a newer software package version that meets the requirements. Monitor and patch existing vulnerabilities, especially disclosed high-risk vulnerabilities with a CVSS score greater than 7.
After the command execution is complete, the msprof-analyze installation package msprof_analyze-{version}-py3-none-any.whl is generated in the dist directory.
- Install the tool.
Run the following command to install msprof-analyze:
Uninstallation and Upgrade¶
To upgrade the tool, uninstall the earlier version before installing the new version. The procedure is as follows: