← 返回命令列表

Linux command

conda-package 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Find which conda package

conda package --which [path/to/file]

List all untracked files

conda package --untracked

Remove all untracked files

conda package --reset

Create a package

conda package --pkg-name [mypackage] --pkg-version [1.0]

Create a package

conda package --pkg-name [mypackage] -n [env_name]

说明

conda package is an experimental low-level utility for creating conda packages and inspecting package contents within environments. It can identify which package a file belongs to, list or remove untracked files, and create simple packages from the current environment state.

参数

-w, --which _PATH_
Given a file path, identify which conda package the file came from.
-u, --untracked
Display all untracked files and exit.
-r, --reset
Remove all untracked files and exit.
--pkg-name _PKG_NAME_
Designate package name of the package being created.
--pkg-version _PKG_VERSION_
Designate package version of the package being created.
--pkg-build _PKG_BUILD_
Designate package build number of the package being created.
-n, --name _name_
Name of environment.
-p, --prefix _path_
Full path to environment location (prefix).

FAQ

What is the conda-package command used for?

conda package is an experimental low-level utility for creating conda packages and inspecting package contents within environments. It can identify which package a file belongs to, list or remove untracked files, and create simple packages from the current environment state.

How do I run a basic conda-package example?

Run `conda package --which [path/to/file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -w, --which _PATH_ do in conda-package?

Given a file path, identify which conda package the file came from.