安装pytorch
进入pytorch官网,根据自己需要设定选项,官网地址为https://pytorch.org/get-started/locally/#mac-anaconda。
若使用清华镜像,可实现下列命令:
pip install torch=1.4.0 torchvision=0.5.0 -f https://download.pytorch.org/whl/torch_stable.html -i https://pypi.tuna.tsinghua.edu.cn/simple