【python】【conda】【Commands 命令11】【conda update】更新conda的版本

本文详细介绍了conda update命令的使用,包括位置参数、命名参数、目标环境规范、渠道定制、求解器模式修改器等多个方面。conda update用于将conda环境中的软件包更新到最新兼容版本,允许指定包列表,调整搜索通道,控制依赖更新等。通过示例展示如何更新特定环境中的特定软件包。
摘要由CSDN通过智能技术生成

目录

1 conda update

2 Positional Arguments 位置参数

3 Named Arguments 命名参数

4 Target Environment Specification

4 目标环境规范编号

5 Channel Customization 渠道定制

6 Solver Mode Modifiers 求解器模式修改器

7 Package Linking and Install-time Options

7 软件包链接和安装时选项

8 Networking Options 网络选项

9 Output, Prompt, and Flow Control Options

9 输出、提示和流控制选项

10 Examples: 示例如下:

1 conda update

Update conda packages to the latest compatible version.
将conda软件包更新到最新的兼容版本。

This command accepts a list of package names and updates them to the latest versions that are compatible with all other packages in the environment.
此命令接受软件包名称列表,并将其更新为与环境中所有其他软件包兼容的最新版本。

Conda attempts to install the newest versions of the requested packages. To accomplish this, it may update some packages that are already installed, or install additional packages. To prevent existing packages from updating, use the --no-update-deps option. This may force conda to install older versions of the requested packages, and it does not prevent additional dependency packages from being installed.
Conda尝试安装所请求软件包的最新版本。要完成此操作,它可能会更新一些已经安装的软件包,或安装其他软件包。要防止现有软件包更新,请使用--no-update-deps选项。这可能会强制conda安装所请求的软件包的旧版本,并且不会阻止安装其他依赖软件包。

usage: conda update [-h] [-n ENVIRONMENT | -p PATH] [-c CHANNEL] [--use-local]
                    [--override-channels] [--repodata-fn REPODATA_FNS]
                    [--experimental {jlap,lock}] [--no-lock]
                    [--repodata-use-zst | --no-repodata-use-zst]
                    [--strict-channel-priority] [--no-channel-priority]
                    [--no-deps | --only-deps] [--no-pin] [--copy]
                    [--no-shortcuts] [--shortcuts-only SHORTCUTS_ONLY] [-C]
                    [-k] [--offline] [--json] [-v] [-q] [-d] [-y]
                    [--download-only] [--show-channel-urls] [--file FILE]
                    [--solver {classic}] [--force-reinstall]
                    [--freeze-installed | --update-deps | -S | --update-all | --update-specs]
                    [--clobber]
                    [package_spec ...]
usage: conda update [-h] [-n ENVIRONMENT | -p PATH] [-c CHANNEL] [--use-local]
                    [--override-channels] [--repodata-fn REPODATA_FNS]
                    [--experimental {
        jlap,lock}] [--no-lock]
                    [--repodata
  • 26
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

资源存储库

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值