15
Anaconda Cheatsheet
Anaconda is a python package manager and it is really amazing, it is popular because it brings many of the tools used in data science and machine learning with just one install.
In a previous article I talked about how to create a virtual environment using anaconda, you can check it out here. đ
In this article, I will list out some of the important anaconda commands. Let's jump right in.
Here on out I will use conda to refer to anaconda
Check if conda is installed and in your PATH if not install from here
conda -V
conda update conda
conda search "^python$"
conda create -n yourenvname python
conda create -n yourenvname python=x.x anaconda
# if you are using a UNIX operating system like ubuntu
source activate *yourenvname*
# if you are using windows
conda activate yourenvname
Failure to specify â-n yourenvnameâ will install the package to the root Python installation.
conda install -n yourenvname [package]
conda deactivate
conda env list
conda remove -n yourenvname -all
Before running the below code, make sure you activated your virtual environment
# on MacOS/Linux:
echo $CONDA_PREFIX
# on Windows:
echo %CONDA_PREFIX%
conda info --envs
That's it, thanks for reading, if you have some code to share please share in the comment section I will add it to the above list.
Don't forget to bookmark this page for future reference đ±âđ€
15