conda create help

https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-with-commands

usage: conda create [-h] [–clone ENV] [-n ENVIRONMENT | -p PATH] [-c CHANNEL]
[–use-local] [–override-channels]
[–repodata-fn REPODATA_FNS] [–strict-channel-priority]
[–no-channel-priority] [–no-deps | --only-deps]
[–no-pin] [–copy] [-C] [-k] [–offline] [-d] [–json]
[-q] [-v] [-y] [–download-only] [–show-channel-urls]
[–file FILE] [–no-default-packages] [–dev]
[package_spec [package_spec …]]

Create a new conda environment from a list of specified packages. To use the created environment, use ‘source activate envname’ look in that directory first. This command requires either the -n NAME or -p PREFIX option.

Options:

positional arguments:
package_spec Packages to install or update in the conda
environment.

optional arguments:
-h, --help Show this help message and exit.
–clone ENV Path to (or name of) existing local environment.
–file FILE Read package versions from the given file. Repeated
file specifications can be passed (e.g. --file=file1
–file=file2).
–dev Use sys.executable -m conda in wrapper scripts
instead of CONDA_EXE This is mainly for use during
tests where we test new conda source against old
Python versions.

Target Environment Specification:
-n ENVIRONMENT, --name ENVIRONMENT
Name of environment.
-p PATH, --prefix PATH
Full path to environment location (i.e. prefix).

Channel Customization:
-c CHANNEL, --channel CHANNEL
Additional channel to search for packages. These are
URLs searched in the order they are given (including
file:// for local directories). Then, the defaults or
channels from .condarc are searched (unless
–override-channels is given). You can use ‘defaults’
to get the default packages for conda. You can also
use any name and the .condarc channel_alias value will
be prepended. The default channel_alias is
http://conda.anaconda.org/.
–use-local Use locally built packages. Identical to ‘-c local’.
–override-channels Do not search default or .condarc channels. Requires
–channel.
–repodata-fn REPODATA_FNS
Specify name of repodata on remote server. Conda will
try whatever you specify, but will ultimately fall
back to repodata.json if your specs are not
satisfiable with what you specify here. This is used
to employ repodata that is reduced in time scope. You
may pass this flagmore than once. Leftmost entries are
tried first, and the fallback torepodata.json is added
for you automatically.

Solver Mode Modifiers:
–strict-channel-priority
Packages in lower priority channels are not considered
if a package with the same name appears in a higher
priority channel.
–no-channel-priority
Package version takes precedence over channel
priority. Overrides the value given by conda config --show channel_priority.
–no-deps Do not install, update, remove, or change
dependencies. This WILL lead to broken environments
and inconsistent behavior. Use at your own risk.
–only-deps Only install dependencies.
–no-pin Ignore pinned file.
–no-default-packages
Ignore create_default_packages in the .condarc file.

Package Linking and Install-time Options:
–copy Install all packages using copies instead of hard- or
soft-linking.

Networking Options:
-C, --use-index-cache
Use cache of channel index files, even if it has
expired.
-k, --insecure Allow conda to perform “insecure” SSL connections and
transfers. Equivalent to setting ‘ssl_verify’ to
‘false’.
–offline Offline mode. Don’t connect to the Internet.

Output, Prompt, and Flow Control Options:
-d, --dry-run Only display what would have been done.
–json Report all output as json. Suitable for using conda
programmatically.
-q, --quiet Do not display progress bar.
-v, --verbose Can be used multiple times. Once for INFO, twice for
DEBUG, three times for TRACE.
-y, --yes Do not ask for confirmation.
–download-only Solve an environment and ensure package caches are
populated, but exit prior to unlinking and linking
packages into the prefix.
–show-channel-urls Show channel urls. Overrides the value given by conda config --show show_channel_urls.

Examples:

conda create -n myenv sqlite
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值