1.subprocess.CalledProcessError: Command ‘[‘where’, ‘cl’]’ returned non-zero exit status 1.
这个问题是因为电脑安装的VS2017,没有将编译器路径加入环境变量。解决方法参考链接为
https://blog.csdn.net/qing666888/article/details/83246992
2、.报错Subprocess.CalledProcessError:Command ‘[‘ninja’,’-v’]’ returned non-zero exit status 1.
参考:https://zhuanlan.zhihu.com/p/53418563
解决方法是:修改…Anaconda3/Lib/site-packages/torch/utils/cpp_extension.py文件
将[‘ninja’,’-v’]改成[‘ninja’,’- -v’](改成双短线)或者改成--version