I tried to install PyTorch using Anaconda on Mac with the following command:

conda install pytorch torchvision -c soumith

The installation seemed successful. However, after I ran python and did:

import torch

The following error occurred:

What was missing? I tried reinstalling several times but that didn’t help.
Thanks!