赞
踩
由于ubuntu安装pytorch需要从githun上下载源码,然后自己编译,pytorch的第三方库很多,在下载pytorch时不会一次性下载下来,要么手动下载,要么借助git工具。
这里我使用git辅助下载第三方库:
git clone https://github.com/pytorch/pytorch.git
git submodule update --init --recursive
中途中断了下,再重新执行git submodule update --init --recursive,然后出现了下面这个问题:
subprocess.CalledProcessError: Command '['cmake', '-GNinja', '-DBUILDING_WIT。。。。。。]' returned non-zero exit status 1
然后找了各种问题,发现是版本不对应的问题,需要下载对应的pytorch与第三方库,然后解决~
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。