Are you building PyTorch from source?
If you don’t need the current master bug fixes and features, it’s simpler to install it using the pre-built binaries.
However, if you want to build from source, try to run python setup.py clean before pyhon setup.py install.