Hi Follow below Steps if you are using Linux Distro:
I done same for my ubuntu 18.04 LTS


Go to the dirctory where you want to create virtual environment.


conda create -n yourenvname python=x.x anaconda (at place of x.x put version of python,I am using 3.6 and yourenvname is your enviroment name could be of anyname)


install conda install pytorch torchvision cudatoolkit=10.1 -c pytorch according to your feasibility.


source activate yourenvname


Jupyter notebook


When you done deactivate your environment with source deactivate command.


Want to access your environment again type this command "source activate yourenvname"
Also if you need to install any packages type  “source activate yourenvname” command and install packages.
cheers !!! stay safe