Error Message "Can not combine '--user' and '--target'" Is Displayed During Toolkit Installation

Symptom

The error message "ERROR: Can not combine '--user' and '--target'" is displayed during Toolkit installation.

Possible Causes

When the CANN package is used to install components using pip, --user or --target may be configured for pip install. As a result, an error is reported.

Solution

  1. Open the pip configuration file.
    vim ~/.pip/pip.conf
  2. Change the value of user in the configuration file to user = false.
  3. Run the :wq! command to save the file and exit.
  4. Perform the CANN installation again.