---
title: 安装Toolkit包时，报错Can not combine '--user' and '--target'
description: "安装Toolkit包时报错“ERROR: Can not combine '--user' and '--target'”。"
url: https://www.hiascend.com/document/detail/zh/CANNCommunityEdition/latest/softwareinst/instg/instg_0091.html
sourcePath: /source/zh/CANNCommunityEdition/920beta1/softwareinst/instg/instg_0091.html
indexId: 5ae1efc03fde0e68ab57150550465d7d9814513f0518b61f014449798ca88cb475
---
# 安装Toolkit包时，报错Can not combine '--user' and '--target'

#### 问题描述

安装Toolkit包时报错“ERROR: Can not combine '--user' and '--target'”。


#### 可能原因

CANN包通过pip安装组件时，pip install可能同时配置了--user或--target，导致报错。


#### 解决措施

1. 执行以下命令打开pip配置文件。

```
vim
~
/.pip/pip.conf
```


2. 将配置文件中的user配置选项修改为user = false。
3. 修改完成后执行:wq!命令保存文件并退出。
4. 重新执行CANN安装操作。
