How to install pytorch in Anaconda with conda or pip?

Go to the official PyTorch.org and follow the steps accordingly.
enter image description here

Select your preferences and you will see an appropriate command below on the page.

If you don’t have GPU in the system, set CUDA as None or CPU

Example command:

conda install pytorch-cpu torchvision-cpu -c pytorch

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)