conda update conda
conda clean --all
conda info --envs
conda create -n myenv python=2.7 anaconda
-n
,--name
flag indicates the name for the environemt we wish to createpython=2.7
indicates our Python version for this environment- The trailing
anaconda
in the end indicates that we wish to initialize our environment with the ‘anaconda’ meta-package. This is entirely optional!
conda activate myenv
conda deactivate myenv
conda remove --name myenv --all
or
conda env remove --name myenv
source deactivate # be sure to exit virtual environment first!
conda create --name new_name --clone old_name
conda remove --name old_name --all
conda list
Lists installed packages in current environment
# conda install --channel <channel-name> --name <environment-name> <package-name>
conda install cmake -y
- The -
y
,--yes
flag simply automates the ‘yes’ approval from you to install the packages - If you wish to install in another virtual environment, simply use the
-n
,--name
flag -c
,--channel
indicates additional channel to search for packages if you do not wish to install from default packages
conda uninstall some_package