Hello there!
I’ve tried to build PyTorch from sources. The following error occurs in the process:
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "setup.py", line 743, in <module>
    build_deps()
  File "setup.py", line 316, in build_deps
    cmake=cmake)
  File "E:\PyTorch\pytorch\tools\build_pytorch_libs.py", line 62, in build_caffe2
    cmake.build(my_env)
  File "E:\PyTorch\pytorch\tools\setup_helpers\cmake.py", line 339, in build
    self.run(build_args, my_env)
  File "E:\PyTorch\pytorch\tools\setup_helpers\cmake.py", line 141, in run
    check_call(command, cwd=self.build_dir, env=env)
  File "C:\Users\Roman\Anaconda3\lib\subprocess.py", line 363, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'Release', '--', '-j', '4']' returned non-zero exit status 1.

Also i’ve tried this:
git clean -xdf
python setup.py clean
git submodule sync
git submodule deinit -f .
git submodule update --init --recursive

And it didn’t help. An error always occurs in the same place. There are no other errors in the logs.
At the same time a few months ago I’ve successfully assembled PyTorch with the current hardware and software configuration.
What could be the reason?