conda python install code example

Example 1: conda install package

#To install a package in currently active enviroment
conda install package-name

Example 2: conda install package

#To install specific package version into a specific named environment
conda install package-name=2.3.4 -n some-environment

Example 3: how to install conda using pip

conda create -n shrink_venv

Example 4: how to install conda using pip

(shrink_venv): pip install Pillow

Requirement already satisfied (use --upgrade to upgrade): Pillow in /Library/Python/2.7/site-packages