I got the source code just like it said. But the latest version is not stable. It returned such error, and failed the installation.
[ 38%] Built target libprotoc
make: *** [all] 错误 2
Traceback (most recent call last):
File “setup.py”, line 756, in 
build_deps()
File “setup.py”, line 316, in build_deps
build_dir=‘build’)
File “/home/wma/pytorch/tools/build_pytorch_libs.py”, line 312, in build_caffe2
check_call([‘make’, ‘-j’, str(max_jobs), ‘install’], cwd=build_dir, env=my_env)
File “/usr/local/lib/python3.6/subprocess.py”, line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘make’, ‘-j’, ‘56’, ‘install’]’ returned non-zero exit status 2.
Searched for reason, and just got no other advice than change it to latest stable version 1.1.0. Sad…
Trying to find what’t wrong with build_pytorch_libs.py in the source code. I guess maybe the CMAKE_PREFIX_PATH was set wrongly, cause there’s no Anaconda on server. Other reasons may be related to make files. Hope the newest version would solve this problem.