conda config:error:one of the arguments --get --add --set --remove --remove is required
时间: 2023-08-15 12:55:37 浏览: 471
对于 "conda config" 命令,至少需要指定其中一个参数:--get、--add、--set、--remove。这些参数用于指定你希望对conda配置进行的操作。请确保在运行该命令时指定了正确的参数。例如,如果你想获取配置信息,可以使用 "--get" 参数。如果你想添加新的配置,可以使用 "--add" 参数。如果你想移除某个配置项,可以使用 "--remove" 参数。请根据你的需求选择合适的参数并重新运行命令。
相关问题
报了一个错,error:one of the arguments --get --add --set is required
这个错误提示说明您在输入命令时没有指定要执行的操作,即没有使用 --get、--add 或 --set 参数。请尝试使用以下命令执行添加清华镜像源的操作:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
执行该命令后,如果出现了类似于“added channels:”之类的提示信息,则说明已经成功添加了清华镜像源。
(base) C:\Users\86183>conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config --set show_channel_urls yesconda install -c conda-forge opencv usage: conda-script.py config [-h] [--json] [-v] [-q] [--system | --env | --file FILE] [--show [SHOW [SHOW ...]] | --show-sources | --validate | --describe [DESCRIBE [DESCRIBE ...]] | --write-default] [--get [KEY [KEY ...]] | --append KEY VALUE | --prepend KEY VALUE | --set KEY VALUE | --remove KEY VALUE | --remove-key KEY | --stdin] conda-script.py config: error: argument --set: not allowed with argument --prepend/--add
这个错误是因为你在输入命令时有误。正确的命令应该是:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
conda install -c conda-forge opencv
你可以将这个命令复制粘贴到命令行中执行。
相关推荐















