how to install conda python code example

Example 1: conda install pytorch

conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch

Example 2: how to start miniconda

conda --version

Example 3: use miniconda in linux

bash Miniconda3-latest-Linux-x86_64.sh

Example 4: how to install conda using pip

conda create -n shrink_venv

Example 5: 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

Tags:

Misc Example