Installation error

When I install Pytorch on my Mac Pro (cylinder), os: EI Captian, installation from sources, python 2.7

I have encountered the following problem:
#include <string.h>
^
In file included from :332:
In file included from :15:
In file included from /usr/local/cuda/include/cuda_runtime.h:116:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found
#include <string.h>
^
In file included from :332:
In file included from :15:
In file included from /usr/local/cuda/include/cuda_runtime.h:116:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found
#include <string.h>
^
In file included from :332:
In file included from :15:
In file included from /usr/local/cuda/include/cuda_runtime.h:116:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found
#include <string.h>
^
In file included from :332:
In file included from :15:
In file included from /usr/local/cuda/include/cuda_runtime.h:116:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found
#include <string.h>
^
In file included from :332:
In file included from :15:
In file included from /usr/local/cuda/include/cuda_runtime.h:116:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found
#include <string.h>
^
In file included from :332:
In file included from :15:
In file included from /usr/local/cuda/include/cuda_runtime.h:116:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found
#include <string.h>
^
In file included from :332:
In file included from :15:
In file included from /usr/local/cuda/include/cuda_runtime.h:116:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found
#include <string.h>
^
In file included from :332:
In file included from :15:
In file included from /usr/local/cuda/include/cuda_runtime.h:116:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found
#include <string.h>
^
In file included from :332:
In file included from :15:
In file included from /usr/local/cuda/include/cuda_runtime.h:116:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found
#include <string.h>
^
In file included from :332:
In file included from :15:
In file included from /usr/local/cuda/include/cuda_runtime.h:116:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found
In file included from :332:
In file included from :15:
In file included from /usr/local/cuda/include/cuda_runtime.h:116:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found
#include <string.h>
^
#include <string.h>
^
In file included from :332:
In file included from :15:
In file included from /usr/local/cuda/include/cuda_runtime.h:116:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found
#include <string.h>
^
In file included from :332:
In file included from :15:
In file included from /usr/local/cuda/include/cuda_runtime.h:116:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found
#include <string.h>
^
In file included from :332:
In file included from :15:
In file included from /usr/local/cuda/include/cuda_runtime.h:116:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found
#include <string.h>
^
In file included from :332:
In file included from :15:
In file included from /usr/local/cuda/include/cuda_runtime.h:116:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found
#include <string.h>
^
In file included from :332:
In file included from :15:
In file included from /usr/local/cuda/include/cuda_runtime.h:116:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found
#include <string.h>
^
In file included from :332:
In file included from :15:
In file included from /usr/local/cuda/include/cuda_runtime.h:116:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found
#include <string.h>
^
In file included from :332:
In file included from :15:
In file included from /usr/local/cuda/include/cuda_runtime.h:116:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found
#include <string.h>
^
In file included from :332:
In file included from :15:
In file included from /usr/local/cuda/include/cuda_runtime.h:116:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found
#include <string.h>
^
In file included from :332:
In file included from :15:
In file included from /usr/local/cuda/include/cuda_runtime.h:116:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found
#include <string.h>
^
In file included from :332:
In file included from :15:
In file included from /usr/local/cuda/include/cuda_runtime.h:116:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found
#include <string.h>
^
In file included from :332:
In file included from :15:
In file included from /usr/local/cuda/include/cuda_runtime.h:116:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found
#include <string.h>
^
In file included from :332:
In file included from :15:
In file included from /usr/local/cuda/include/cuda_runtime.h:116:
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found
#include <string.h>
^
1 error generated.
1 error generated.
CMake Error at THC_generated_THCBlas.cu.o.cmake:207 (message):
Error generating
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCBlas.cu.o

CMake Error at THC_generated_THCSleep.cu.o.cmake:207 (message):
Error generating
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCSleep.cu.o

make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCBlas.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs…
make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCSleep.cu.o] Error 1
1 error generated.
CMake Error at THC_generated_THCReduceApplyUtils.cu.o.cmake:207 (message):
Error generating
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCReduceApplyUtils.cu.o

make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCReduceApplyUtils.cu.o] Error 1
1 error generated.
CMake Error at THC_generated_THCTensor.cu.o.cmake:207 (message):
Error generating
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensor.cu.o

make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensor.cu.o] Error 1
1 error generated.
1 error generated.
CMake Error at THC_generated_THCTensorCopy.cu.o.cmake:207 (message):
Error generating
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorCopy.cu.o

make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorCopy.cu.o] Error 1
CMake Error at THC_generated_THCTensorTypeUtils.cu.o.cmake:207 (message):
Error generating
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorTypeUtils.cu.o

make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorTypeUtils.cu.o] Error 1
1 error generated.
CMake Error at THC_generated_THCStorageCopy.cu.o.cmake:207 (message):
Error generating
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCStorageCopy.cu.o

make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCStorageCopy.cu.o] Error 1
1 error generated.
CMake Error at THC_generated_THCTensorConv.cu.o.cmake:207 (message):
Error generating
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorConv.cu.o

1 error generated.
make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorConv.cu.o] Error 1
CMake Error at THC_generated_THCTensorMathBlas.cu.o.cmake:207 (message):
Error generating
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMathBlas.cu.o

make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorMathBlas.cu.o] Error 1
1 error generated.
1 error generated.
CMake Error at THC_generated_THCTensorScatterGather.cu.o.cmake:207 (message):
Error generating
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorScatterGather.cu.o

CMake Error at THC_generated_THCTensorMathCompareTByte.cu.o.cmake:207 (message):
Error generating
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathCompareTByte.cu.o

make[2]: *** [CMakeFiles/THC.dir/generated/THC_generated_THCTensorMathCompareTByte.cu.o] Error 1
make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorScatterGather.cu.o] Error 1
1 error generated.
1 error generated.
CMake Error at THC_generated_THCTensorMathMagma.cu.o.cmake:207 (message):
Error generating
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMathMagma.cu.o

make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorMathMagma.cu.o] Error 1
CMake Error at THC_generated_THCTensorMathPairwise.cu.o.cmake:207 (message):
Error generating
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMathPairwise.cu.o

make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorMathPairwise.cu.o] Error 1
1 error generated.
CMake Error at THC_generated_THCTensorIndex.cu.o.cmake:207 (message):
Error generating
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorIndex.cu.o

make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorIndex.cu.o] Error 1
1 error generated.
1 error generated.
1 error generated.
1 error generated.
1 error generated.
1 error generated.
1 error generated.
1 error generated.
CMake Error at THC_generated_THCHalf.cu.o.cmake:207 (message):
Error generating
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCHalf.cu.o

CMake Error at THC_generated_THCTensorTopK.cu.o.cmake:207 (message):
Error generating
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorTopK.cu.o

CMake Error at THC_generated_THCTensorSort.cu.o.cmake:207 (message):
Error generating
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorSort.cu.o

CMake Error at THC_generated_THCStorage.cu.o.cmake:207 (message):
Error generating
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCStorage.cu.o

CMake Error at THC_generated_THCTensorMathReduce.cu.o.cmake:207 (message):
Error generating
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMathReduce.cu.o

make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCHalf.cu.o] Error 1
make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorTopK.cu.o] Error 1
make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorSort.cu.o] Error 1
make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCStorage.cu.o] Error 1
make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorMathReduce.cu.o] Error 1
1 error generated.
CMake Error at THC_generated_THCTensorSortByte.cu.o.cmake:207 (message):
Error generating
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorSortByte.cu.o

make[2]: *** [CMakeFiles/THC.dir/generated/THC_generated_THCTensorSortByte.cu.o] Error 1
CMake Error at THC_generated_THCTensorMath2.cu.o.cmake:207 (message):
Error generating
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMath2.cu.o

CMake Error at THC_generated_THCTensorMathScan.cu.o.cmake:207 (message):
Error generating
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMathScan.cu.o

make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorMath2.cu.o] Error 1
make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorMathScan.cu.o] Error 1
CMake Error at THC_generated_THCTensorMath.cu.o.cmake:207 (message):
Error generating
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMath.cu.o

make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorMath.cu.o] Error 1
1 error generated.
CMake Error at THC_generated_THCTensorRandom.cu.o.cmake:207 (message):
Error generating
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorRandom.cu.o

make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorRandom.cu.o] Error 1
make[1]: *** [CMakeFiles/THC.dir/all] Error 2
make: *** [all] Error 2

Are you using conda? It requiers setting an additional env variable on OS X. Please check the README.

As we mention in the README, on OSX, you need to set the env flag:
export MACOSX_DEPLOYMENT_TARGET=10.9

Done by updating Xcode. It is so weird.

Tips to fix -

Make sure that your device has enough space.
Run Windows Update a few times.
Check third-party drivers and download any updates.
Check Device Manager for errors.
Remove third-party security software.
Repair hard-drive errors.
Do a clean restart into Windows.

Regards,
Rachel Gomez