Anaconda¶
Anaconda Distribution is a popular platform that contains
- conda - a package and environment manager for your command line interface
- Over 300 automaticall-installed packages
Installation¶
To install Anaconda, download the installer from the Anaconda website. The installer will ask you to accept the license agreement, choose the installation directory.
# check python location
where python
# check python version
python -V
Setting up virtual environment¶
Create a virtual environment¶
Right click the Anaconda prompt and Run as Administrator (This step will ensure that your package is installed in Anaconda/env folder)
Create a virtual environment named as 'np' with python version 3.9
conda create -n np python=3.9
List virtual environment¶
now if you list virgual envionment, you can see the virtual environment that you just create
conda env list
Activate virtual environment¶
if you virtual environment named as 'arcgis_python'
activate np
Install packages (e.g., numpy)¶
conda install numpy
Remove a virtual environmen named 'np'¶
conda remove -n np --all -y