Based on the error and output it seems you are trying to build a library/package from source, so I don’t understand the “pytorch v1.7.0 installed via conda” statement.
If you’ve installed the PyTorch binaries via conda, you wouldn’t have to rebuild anything.