How to install Pytorch from source on MacOS

username: nehasharan
cooked: <p>I installed Anaconda on virtual env with python 3.5, Cuda toolkit 10.2 (higher version not available on mac) cuDNN not available for mac. After this when I am running command “conda install numpy ninja pyyaml mkl mkl-include setuptools cmake cffi typing_extensions future six requests dataclasses” I am getting multiple conflicts. Any clue? The reason I created env with python 3.5 is that I was getting conflict while installing TensorFlow.</p>
<hr>
<p>UnsatisfiableError: The following specifications were found to be incompatible with each other:</p>
<p>Output in format: Requested package -&gt; Available versions<br>
Package ca-certificates conflicts for:<br>
requests -&gt; python -&gt; ca-certificates<br>
typing_extensions -&gt; python[version=’&gt;=2.7,&lt;2.8.0a0’] -&gt; ca-certificates<br>
six -&gt; python -&gt; ca-certificates<br>
numpy -&gt; python[version=’&gt;=2.7,&lt;2.8.0a0’] -&gt; ca-certificates<br>
setuptools -&gt; python[version=’&gt;=2.7,&lt;2.8.0a0’] -&gt; ca-certificates<br>
future -&gt; python[version=’&gt;=2.7,&lt;2.8.0a0’] -&gt; ca-certificates<br>
cffi -&gt; python[version=’&gt;=2.7,&lt;2.8.0a0’] -&gt; ca-certificates<br>
ninja -&gt; python[version=’&gt;=2.7,&lt;2.8.0a0’] -&gt; ca-certificates<br>
pyyaml -&gt; python[version=’&gt;=2.7,&lt;2.8.0a0’] -&gt; ca-certificates<br>
python=3.5 -&gt; openssl[version=’&gt;=1.0.2p,&lt;1.0.3a’] -&gt; ca-certificates<br>
Package libcxx conflicts for:<br>
setuptools -&gt; python[version=’&gt;=3.6,&lt;3.7.0a0’] -&gt; libcxx[version=’&gt;=10.0.0|&gt;=4.0.1’]<br>
python=3.5 -&gt; libffi[version=’&gt;=3.2.1,&lt;3.3a0’] -&gt; libcxx[version=’&gt;=10.0.0’]<br>
cmake -&gt; libcxx[version=’&gt;=10.0.0|&gt;=4.0.1’]<br>
numpy -&gt; python[version=’&gt;=3.7,&lt;3.8.0a0’] -&gt; libcxx[version=’&gt;=10.0.0|&gt;=4.0.1’]<br>
cffi -&gt; libffi[version=’&gt;=3.3,&lt;3.4.0a0’] -&gt; libcxx[version=’&gt;=10.0.0|&gt;=4.0.1’]<br>
six -&gt; python[version=’&gt;=3.9,&lt;3.10.0a0’] -&gt; libcxx[version=’&gt;=10.0.0|&gt;=4.0.1’]<br>
pyyaml -&gt; python[version=’&gt;=3.8,&lt;3.9.0a0’] -&gt; libcxx[version=’&gt;=10.0.0|&gt;=4.0.1’]<br>
future -&gt; python[version=’&gt;=3.8,&lt;3.9.0a0’] -&gt; libcxx[version=’&gt;=10.0.0|&gt;=4.0.1’]<br>
ninja -&gt; libcxx[version=’&gt;=10.0.0|&gt;=4.0.1’]<br>
requests -&gt; python -&gt; libcxx[version=’&gt;=10.0.0|&gt;=4.0.1’]<br>
dataclasses -&gt; python[version=’&gt;=3.7,&lt;3.8.0a0’] -&gt; libcxx[version=’&gt;=10.0.0|&gt;=4.0.1’]<br>
ninja -&gt; python[version=’&gt;=3.6,&lt;3.7.0a0’] -&gt; libcxx<br>
typing_extensions -&gt; python[version=’&gt;=3.5’] -&gt; libcxx[version=’&gt;=10.0.0|&gt;=4.0.1’]<br>
python=3.5 -&gt; libcxx[version=’&gt;=4.0.1’]<br>
Package certifi conflicts for:<br>
setuptools -&gt; certifi[version=’&gt;=2016.09|&gt;=2016.9.26’]<br>
requests -&gt; certifi[version=’&gt;=2017.4.17’]<br>
requests -&gt; urllib3[version=’&gt;=1.21.1,&lt;1.26,!=1.25.0,!=1.25.1’] -&gt; certifi<br>
Package libcxxabi conflicts for:<br>
cmake -&gt; libcxx[version=’&gt;=4.0.1’] -&gt; libcxxabi==4.0.1[build=‘hcfea43d_1|hebd6815_0’]<br>
ninja -&gt; libcxx[version=’&gt;=4.0.1’] -&gt; libcxxabi==4.0.1[build=‘hcfea43d_1|hebd6815_0’]<br>
python=3.5 -&gt; libcxx[version=’&gt;=4.0.1’] -&gt; libcxxabi==4.0.1[build=‘hcfea43d_1|hebd6815_0’]<br>
Package six conflicts for:<br>
numpy -&gt; mkl-service[version=’&gt;=2,&lt;3.0a0’] -&gt; six<br>
six<br>
Package mkl conflicts for:<br>
numpy -&gt; mkl[version=’&gt;=2018.0.0,&lt;2019.0a0|&gt;=2018.0.1,&lt;2019.0a0|&gt;=2018.0.2,&lt;2019.0a0|&gt;=2018.0.3,&lt;2019.0a0|&gt;=2019.1,&lt;2020.0a0|&gt;=2019.3,&lt;2020.0a0|&gt;=2019.4,&lt;2020.0a0’]<br>
mkl<br>
Package setuptools conflicts for:<br>
python=3.5 -&gt; pip -&gt; setuptools<br>
setuptools<br>
Package tzdata conflicts for:<br>
requests -&gt; python -&gt; tzdata<br>
setuptools -&gt; python[version=’&gt;=3.9,&lt;3.10.0a0’] -&gt; tzdata<br>
cffi -&gt; python[version=’&gt;=3.9,&lt;3.10.0a0’] -&gt; tzdata<br>
typing_extensions -&gt; python[version=’&gt;=3.5’] -&gt; tzdata<br>
six -&gt; python[version=’&gt;=3.9,&lt;3.10.0a0’] -&gt; tzdata</p>

username: albanD
cooked: <p>Hi,</p>
<p>I don’t think we support python 3.5 in latest master branch.<br>
Moving to a more recent python version should help (3.6.3+)</p>