Managing Miniconda through the command line

To manage Miniconda through the command line in Windows, run Anaconda Prompt:

Start — Anaconda3 (XX-bit) — Anaconda Prompt (miniconda)

Note

This guide doesn’t say anything about channels. Although this is a pretty significant part of conda, at first you can use the default channel. You can read about the channels in the conda documentation.

Viewing basic conda information

Показать информацию об установленной версии conda:

conda info

Show the list of packages installed with conda:

conda list

Basic commands to manage the environment

Let’s create, activate and deactivate a virtual environment named docdev:

  • Create the docdev virtual environment:

    conda create --name docdev python

  • Activate the environment:

    conda activate docdev

    Note

    For a Miniconda version earlier than 4.6, use activate instead of conda activate in Windows.

  • Deactivate the active environment (in our case, the docdev environment is deactivated and the default environment is activated):

    conda deactivate

Basic commands to manage packages

Install, update and remove the sphinx package:

  • Install the sphinx package to the active environment:

    conda install sphinx

  • Install the sphinx package in the docdev environment:

    conda install -n docdev sphinx

  • Update the sphinx package in the docdev environment:

    conda update -n docdev sphinx

  • Remove the sphinx package from the active environment:

    conda remove sphinx

For more information, see conda documentation.