Installation Problem

hey can anyone help me how to install pytorch in jupyterNotebook,is it neccesary to have anaconda also?

You do not need anaconda. You can use VS Code and download the latest Python for your system. Check how to activate an environment and download Jupiter here