pip无法安装,想自己编译,并且有错误的都可以看这篇
1、下载pytorch源码
git clone --recursive https://github.com/pytorch/pytorch.git
cd pytorch
git submodule sync
git submodule update --init --recursive --jobs 0
2、创建编译文件夹
通过设置配置或者修改cmakelists的配置来关闭一些不支持的功能
在目录中打开cmd
set SLEEF_ARCH_AARCH64