Installation error

Shiyu: <p>When I install Pytorch on my Mac Pro (cylinder), os: EI Captian, installation from sources, python 2.7</p>
<p>I have encountered the following problem:<br>
<span class="hashtag">#include</span> &lt;string.h&gt;<br>
^<br>
In file included from :332:<br>
In file included from :15:<br>
In file included from /usr/local/cuda/include/cuda_runtime.h:116:<br>
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found<br>
<span class="hashtag">#include</span> &lt;string.h&gt;<br>
^<br>
In file included from :332:<br>
In file included from :15:<br>
In file included from /usr/local/cuda/include/cuda_runtime.h:116:<br>
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found<br>
<span class="hashtag">#include</span> &lt;string.h&gt;<br>
^<br>
In file included from :332:<br>
In file included from :15:<br>
In file included from /usr/local/cuda/include/cuda_runtime.h:116:<br>
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found<br>
<span class="hashtag">#include</span> &lt;string.h&gt;<br>
^<br>
In file included from :332:<br>
In file included from :15:<br>
In file included from /usr/local/cuda/include/cuda_runtime.h:116:<br>
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found<br>
<span class="hashtag">#include</span> &lt;string.h&gt;<br>
^<br>
In file included from :332:<br>
In file included from :15:<br>
In file included from /usr/local/cuda/include/cuda_runtime.h:116:<br>
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found<br>
<span class="hashtag">#include</span> &lt;string.h&gt;<br>
^<br>
In file included from :332:<br>
In file included from :15:<br>
In file included from /usr/local/cuda/include/cuda_runtime.h:116:<br>
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found<br>
<span class="hashtag">#include</span> &lt;string.h&gt;<br>
^<br>
In file included from :332:<br>
In file included from :15:<br>
In file included from /usr/local/cuda/include/cuda_runtime.h:116:<br>
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found<br>
<span class="hashtag">#include</span> &lt;string.h&gt;<br>
^<br>
In file included from :332:<br>
In file included from :15:<br>
In file included from /usr/local/cuda/include/cuda_runtime.h:116:<br>
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found<br>
<span class="hashtag">#include</span> &lt;string.h&gt;<br>
^<br>
In file included from :332:<br>
In file included from :15:<br>
In file included from /usr/local/cuda/include/cuda_runtime.h:116:<br>
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found<br>
<span class="hashtag">#include</span> &lt;string.h&gt;<br>
^<br>
In file included from :332:<br>
In file included from :15:<br>
In file included from /usr/local/cuda/include/cuda_runtime.h:116:<br>
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found<br>
In file included from :332:<br>
In file included from :15:<br>
In file included from /usr/local/cuda/include/cuda_runtime.h:116:<br>
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found<br>
<span class="hashtag">#include</span> &lt;string.h&gt;<br>
^<br>
<span class="hashtag">#include</span> &lt;string.h&gt;<br>
^<br>
In file included from :332:<br>
In file included from :15:<br>
In file included from /usr/local/cuda/include/cuda_runtime.h:116:<br>
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found<br>
<span class="hashtag">#include</span> &lt;string.h&gt;<br>
^<br>
In file included from :332:<br>
In file included from :15:<br>
In file included from /usr/local/cuda/include/cuda_runtime.h:116:<br>
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found<br>
<span class="hashtag">#include</span> &lt;string.h&gt;<br>
^<br>
In file included from :332:<br>
In file included from :15:<br>
In file included from /usr/local/cuda/include/cuda_runtime.h:116:<br>
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found<br>
<span class="hashtag">#include</span> &lt;string.h&gt;<br>
^<br>
In file included from :332:<br>
In file included from :15:<br>
In file included from /usr/local/cuda/include/cuda_runtime.h:116:<br>
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found<br>
<span class="hashtag">#include</span> &lt;string.h&gt;<br>
^<br>
In file included from :332:<br>
In file included from :15:<br>
In file included from /usr/local/cuda/include/cuda_runtime.h:116:<br>
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found<br>
<span class="hashtag">#include</span> &lt;string.h&gt;<br>
^<br>
In file included from :332:<br>
In file included from :15:<br>
In file included from /usr/local/cuda/include/cuda_runtime.h:116:<br>
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found<br>
<span class="hashtag">#include</span> &lt;string.h&gt;<br>
^<br>
In file included from :332:<br>
In file included from :15:<br>
In file included from /usr/local/cuda/include/cuda_runtime.h:116:<br>
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found<br>
<span class="hashtag">#include</span> &lt;string.h&gt;<br>
^<br>
In file included from :332:<br>
In file included from :15:<br>
In file included from /usr/local/cuda/include/cuda_runtime.h:116:<br>
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found<br>
<span class="hashtag">#include</span> &lt;string.h&gt;<br>
^<br>
In file included from :332:<br>
In file included from :15:<br>
In file included from /usr/local/cuda/include/cuda_runtime.h:116:<br>
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found<br>
<span class="hashtag">#include</span> &lt;string.h&gt;<br>
^<br>
In file included from :332:<br>
In file included from :15:<br>
In file included from /usr/local/cuda/include/cuda_runtime.h:116:<br>
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found<br>
<span class="hashtag">#include</span> &lt;string.h&gt;<br>
^<br>
In file included from :332:<br>
In file included from :15:<br>
In file included from /usr/local/cuda/include/cuda_runtime.h:116:<br>
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found<br>
<span class="hashtag">#include</span> &lt;string.h&gt;<br>
^<br>
In file included from :332:<br>
In file included from :15:<br>
In file included from /usr/local/cuda/include/cuda_runtime.h:116:<br>
/usr/local/cuda/include/common_functions.h:65:10: fatal error: ‘string.h’ file not found<br>
<span class="hashtag">#include</span> &lt;string.h&gt;<br>
^<br>
1 error generated.<br>
1 error generated.<br>
CMake Error at THC_generated_THCBlas.cu.o.cmake:207 (message):<br>
Error generating<br>
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCBlas.cu.o</p>
<p>CMake Error at THC_generated_THCSleep.cu.o.cmake:207 (message):<br>
Error generating<br>
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCSleep.cu.o</p>
<p>make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCBlas.cu.o] Error 1<br>
make[2]: *** Waiting for unfinished jobs…<br>
make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCSleep.cu.o] Error 1<br>
1 error generated.<br>
CMake Error at THC_generated_THCReduceApplyUtils.cu.o.cmake:207 (message):<br>
Error generating<br>
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCReduceApplyUtils.cu.o</p>
<p>make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCReduceApplyUtils.cu.o] Error 1<br>
1 error generated.<br>
CMake Error at THC_generated_THCTensor.cu.o.cmake:207 (message):<br>
Error generating<br>
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensor.cu.o</p>
<p>make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensor.cu.o] Error 1<br>
1 error generated.<br>
1 error generated.<br>
CMake Error at THC_generated_THCTensorCopy.cu.o.cmake:207 (message):<br>
Error generating<br>
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorCopy.cu.o</p>
<p>make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorCopy.cu.o] Error 1<br>
CMake Error at THC_generated_THCTensorTypeUtils.cu.o.cmake:207 (message):<br>
Error generating<br>
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorTypeUtils.cu.o</p>
<p>make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorTypeUtils.cu.o] Error 1<br>
1 error generated.<br>
CMake Error at THC_generated_THCStorageCopy.cu.o.cmake:207 (message):<br>
Error generating<br>
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCStorageCopy.cu.o</p>
<p>make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCStorageCopy.cu.o] Error 1<br>
1 error generated.<br>
CMake Error at THC_generated_THCTensorConv.cu.o.cmake:207 (message):<br>
Error generating<br>
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorConv.cu.o</p>
<p>1 error generated.<br>
make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorConv.cu.o] Error 1<br>
CMake Error at THC_generated_THCTensorMathBlas.cu.o.cmake:207 (message):<br>
Error generating<br>
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMathBlas.cu.o</p>
<p>make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorMathBlas.cu.o] Error 1<br>
1 error generated.<br>
1 error generated.<br>
CMake Error at THC_generated_THCTensorScatterGather.cu.o.cmake:207 (message):<br>
Error generating<br>
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorScatterGather.cu.o</p>
<p>CMake Error at THC_generated_THCTensorMathCompareTByte.cu.o.cmake:207 (message):<br>
Error generating<br>
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathCompareTByte.cu.o</p>
<p>make[2]: *** [CMakeFiles/THC.dir/generated/THC_generated_THCTensorMathCompareTByte.cu.o] Error 1<br>
make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorScatterGather.cu.o] Error 1<br>
1 error generated.<br>
1 error generated.<br>
CMake Error at THC_generated_THCTensorMathMagma.cu.o.cmake:207 (message):<br>
Error generating<br>
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMathMagma.cu.o</p>
<p>make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorMathMagma.cu.o] Error 1<br>
CMake Error at THC_generated_THCTensorMathPairwise.cu.o.cmake:207 (message):<br>
Error generating<br>
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMathPairwise.cu.o</p>
<p>make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorMathPairwise.cu.o] Error 1<br>
1 error generated.<br>
CMake Error at THC_generated_THCTensorIndex.cu.o.cmake:207 (message):<br>
Error generating<br>
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorIndex.cu.o</p>
<p>make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorIndex.cu.o] Error 1<br>
1 error generated.<br>
1 error generated.<br>
1 error generated.<br>
1 error generated.<br>
1 error generated.<br>
1 error generated.<br>
1 error generated.<br>
1 error generated.<br>
CMake Error at THC_generated_THCHalf.cu.o.cmake:207 (message):<br>
Error generating<br>
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCHalf.cu.o</p>
<p>CMake Error at THC_generated_THCTensorTopK.cu.o.cmake:207 (message):<br>
Error generating<br>
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorTopK.cu.o</p>
<p>CMake Error at THC_generated_THCTensorSort.cu.o.cmake:207 (message):<br>
Error generating<br>
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorSort.cu.o</p>
<p>CMake Error at THC_generated_THCStorage.cu.o.cmake:207 (message):<br>
Error generating<br>
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCStorage.cu.o</p>
<p>CMake Error at THC_generated_THCTensorMathReduce.cu.o.cmake:207 (message):<br>
Error generating<br>
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMathReduce.cu.o</p>
<p>make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCHalf.cu.o] Error 1<br>
make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorTopK.cu.o] Error 1<br>
make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorSort.cu.o] Error 1<br>
make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCStorage.cu.o] Error 1<br>
make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorMathReduce.cu.o] Error 1<br>
1 error generated.<br>
CMake Error at THC_generated_THCTensorSortByte.cu.o.cmake:207 (message):<br>
Error generating<br>
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorSortByte.cu.o</p>
<p>make[2]: *** [CMakeFiles/THC.dir/generated/THC_generated_THCTensorSortByte.cu.o] Error 1<br>
CMake Error at THC_generated_THCTensorMath2.cu.o.cmake:207 (message):<br>
Error generating<br>
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMath2.cu.o</p>
<p>CMake Error at THC_generated_THCTensorMathScan.cu.o.cmake:207 (message):<br>
Error generating<br>
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMathScan.cu.o</p>
<p>make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorMath2.cu.o] Error 1<br>
make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorMathScan.cu.o] Error 1<br>
CMake Error at THC_generated_THCTensorMath.cu.o.cmake:207 (message):<br>
Error generating<br>
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMath.cu.o</p>
<p>make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorMath.cu.o] Error 1<br>
1 error generated.<br>
CMake Error at THC_generated_THCTensorRandom.cu.o.cmake:207 (message):<br>
Error generating<br>
/Users/liangshiyu/Desktop/pytorch-master/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorRandom.cu.o</p>
<p>make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorRandom.cu.o] Error 1<br>
make[1]: *** [CMakeFiles/THC.dir/all] Error 2<br>
make: *** [all] Error 2</p>

apaszke: <p>Are you using conda? It requiers setting an additional env variable on OS X. Please check the README.</p>

smth: <p>As we mention in the <a href="https://github.com/pytorch/pytorch#from-source">README</a>, on OSX, you need to set the env flag:<br>
<code>export MACOSX_DEPLOYMENT_TARGET=10.9</code></p>

Shiyu: <p>Done by updating Xcode. It is so weird.</p>

RachelGomez161999: <p>Tips to fix -</p>
<p>Make sure that your device has enough space.<br>
Run Windows Update a few times.<br>
Check third-party drivers and download any updates.<br>
Check Device Manager for errors.<br>
Remove third-party security software.<br>
Repair hard-drive errors.<br>
Do a clean restart into Windows.</p>
<p>Regards,<br>
Rachel Gomez</p>