使用conda remove命令从指定环境中删除Python程序包列表【详解】

1 conda remove

Remove a list of packages from a specified conda environment.
从指定的conda环境中删除程序包列表。

Use –all flag to remove all packages and the environment itself.
使用–all标志删除所有包和环境本身。

This command will also remove any package that depends on any of the specified packages as well—unless a replacement can be found without that dependency. If you wish to skip this dependency checking and remove just the requested packages, add the ‘–force’ option. Note however that this may result in a broken environment, so use this with caution.
这个命令也将删除依赖于任何指定包的包-除非找到一个没有依赖关系的替代包。如果你想跳过这个依赖项检查,只删除请求的包,添加’–force’选项。但是请注意,这可能会导致环境损坏,因此请谨慎使用。

usage: conda remove [-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] [--features]
                    [--force-remove] [--no-pin] [--solver {classic}] [-C] [-k]
                    [--offline] [--json] [-v] [-q] [-d] [-y] [--all]
                    [--keep-env] [--dev]
                    [package_name ...]
usage: conda remove [-h] [-n ENVIRONMENT | -p PATH] [-c CHANNEL] [--use-local] [--override-channels] [--repodata-fn REPODATA_FNS] [--exper

作者:资源存储库

物联沃分享整理
物联沃-IOTWORD物联网 » 使用conda remove命令从指定环境中删除Python程序包列表【详解】

发表回复