【python】【conda】【Commands 命令4】【conda env】conda环境【下集】

本文详细介绍了conda环境管理中的export、list、remove和update四个命令的使用,包括命名参数、目标环境规范、输出控制选项及具体示例。通过这些命令,可以方便地导出、查看、删除和更新conda环境。
摘要由CSDN通过智能技术生成

目录

4 conda env export

4.1 Named Arguments 

4.1 命名参数

4.2 Target Environment Specification

4.2 目标环境规范编号

4.3 Output, Prompt, and Flow Control Options

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

4.4 Examples:    示例如下:

5 conda env list

5.1 Output, Prompt, and Flow Control Options 

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

6 conda env remove

6.1 Named Arguments 

6.1 命名参数

6.2 Target Environment Specification

6.2 目标环境规范编号

6.3 Output, Prompt, and Flow Control Options

6.3 输出、提示和流控制选项#

6.4 Examples: 示例如下:

7 conda env update

7.1  Positional Arguments 位置参数

7.2 Named Arguments 命名参数

7.3 Target Environment Specification目标环境规范编号

7.4 Output, Prompt, and Flow Control Options输出、提示和流控制选项

7.5 Examples: 示例如下:

4 conda env export

Export a given environment
导出给定环境

usage: conda env export [-h] [-c CHANNEL] [--override-channels]
                        [-n ENVIRONMENT | -p PATH] [-f FILE] [--no-builds]
                        [--ignore-channels] [--json] [-v] [-q]
                        [--from-history]

4.1 Named Arguments 

4.1 命名参数

-c, --channel

Additional channel to include in the export
要包含在导出中的附加通道

--override-channels

Do not include .condarc channels
不包括.condarc通道

-f, --file

File name or path for the exported environment. Note: This will silently overwrite any existing file of the same name in the current directory.
导出环境的文件名或路径。注意:这将静默覆盖当前目录中任何同名的现有文件。

--no-builds

Remove build specification from dependencies
从依赖项中删除构建规范

--ignore-channels

Do not include channel names with package names.
不要在包名称中包含通道名称。

--from-history

Build environment spec from explicit specs in history
从历史中的显式规格构建环境规格

4.2 Target Environment Specification

4.2 目标环境规范编号

-n, --name

Name of environment. 环境的名称。

-p, --prefix

Full path to environment location (i.e. prefix).
环境位置的完整路径(即前缀)。

4.3 Output, Prompt, and Flow Control Options

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

--json

Report all output as json. Suitable for using conda programmatically.
将所有输出报告为json。适合以编程方式使用conda。

-v, --verbose

Can be used multiple times. Once for detailed output, twice for INFO logging, thrice for DEBUG logging, four times for TRACE logging.
可多次使用。一次用于详细输出,两次用于INFO日志记录,三次用于DEBUG日志记录,四次用于TRACE日志记录。

-q, --quiet

Do not display progress bar.
不显示进度条。

  • 17
    点赞
  • 23
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

资源存储库

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

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

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

打赏作者

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

抵扣说明:

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

余额充值