Some common commands of Conda

The first is the download address of Miniconda. It is much lighter than Anaconda and more comfortable to use, but there is no graphical interface.

Miniconda — miniconda documentation

Summarize some commonly used commands to avoid having to check them every time you need to use them. Note that the following are all commands under Windows. Some commands will be slightly different under Linux.


View version

conda -V 

updated version

conda update conda

Set channel address to display when searching

conda config --set show_channel_urls yes

Clear index cache

conda clean -i 

See what environments are currently available

conda env list 
conda info -e

Create environment

conda create -n $your_env_name python=x.x

-n can also be written as -name


Activate the specified environment

conda activate $your_env_name

conda does not need to be written


Close environment

conda deactivate $env_name

conda does not need to be written


Delete environment

conda remove -n $your_env_name --all

Check which packages are installed

conda list

Install additional packages

conda install -n $your_env_name $package_name

Delete a package in the environment

conda remove --name $your_env_name $package_name

Guess you like

Origin blog.csdn.net/WPAPA/article/details/132775516