conda install package-name code example
Example 1: conda install package
#To install a package in currently active enviroment
conda install package-name
Example 2: how to install a library in anaconda
python -m pip install libraryname
#To install a package in currently active enviroment
conda install package-name
python -m pip install libraryname