Conda使用手册

本文介绍了conda的安装、常用命令,包括环境管理、包管理等。推荐使用miniconda安装,conda主要用于创建虚拟环境,包管理建议使用pip,但conda在处理依赖时更方便。此外,介绍了如何使用国内conda软件源加速。
摘要由CSDN通过智能技术生成


conda 是针对于 python 的环境和包管理工具。可以安装 minconda 或 anaconda 进行安装,前者是简化版本,只包含 conda 和其依赖。conda 有 Python3.x 和 Python2.x 系列两个版本,其实都没有关系,因为你在使用 conda 进行创建环境时,可以指定 Python 的版本。

安装 conda

以 miniconda 为例,进入 https://conda.io/miniconda.html 选择对应的版本下载并安装。

查看 conda 帮助

所有关于 conda 的使用都可以从帮助信息获取,在什么也不知道的情况下就可以使用 conda -h/--help 查看帮助信息:

$ conda -h
conda is a tool for managing and deploying applications, environments and packages.

Options:

positional arguments:
  command
    info Display information about current conda install.
    help Displays a list of available conda commands and their help
                 strings.
    list List linked packages in a conda environment.
    ......

可以看到,conda 有很多命令,要查看具体命令帮助,同样使用 -h 选项,如:

$ conda info -h
usage: conda info [-h] [--json] [--debug] [--verbose] [--offline] [-a] [-e]
                  [-l] [-s] [--root] [--unsafe-channels]
                  [packages [packages ...]]

Display information about current conda install.

Options:

positional arguments:
  packages Display information about packages.

optional arguments:
  -h, --help Show this help message and exit.
  --json Report all outp
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值