Installation failing in Anaconda environment

Shalashaska: <p>I would really appreciate some help in getting PyTorch working in Anaconda.</p>
<p>I created a new Anaconda environment and then ran:<br>
conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia</p>
<p>and got the following messages:</p>
<blockquote>
<p><em>The following specifications were found to be incompatible with each other:</em></p>
<p><em>Output in format: Requested package → Available versions</em></p>
<p><em>Package setuptools conflicts for:</em><br>
<em>python=3.12 → pip → setuptools</em><br>
<em>pytorch → jinja2 → setuptools</em><br>
<em>torchvision → setuptools</em></p>
<p><em>Package requests conflicts for:</em><br>
<em>python=3.12 → pip → requests</em><br>
<em>torchvision → requests</em></p>
<p><em>Package typing conflicts for:</em><br>
<em>pytorch → typing_extensions → typing[version=‘&gt;=3.6.2|&gt;=3.7.4’]</em><br>
<em>torchvision → typing_extensions → typing[version=‘&gt;=3.6.2|&gt;=3.7.4’]</em></p>
<p><em>Package pytorch-cuda conflicts for:</em><br>
<em>torchaudio → pytorch-cuda[version='11.6.</em>|11.7.<em>|11.8.</em>|12.1.<em>']</em><br>
<em>torchaudio → pytorch==2.1.0 → pytorch-cuda[version=‘&gt;=11.6,&lt;11.7|&gt;=11.7,&lt;11.8|&gt;=11.8,&lt;11.9|&gt;=12.1,&lt;12.2’]</em><br>
<em>pytorch → pytorch-cuda[version=‘&gt;=11.6,&lt;11.7|&gt;=11.7,&lt;11.8|&gt;=11.8,&lt;11.9|&gt;=12.1,&lt;12.2’]</em><br>
<em>torchvision → pytorch==2.1.0 → pytorch-cuda[version=‘&gt;=11.6,&lt;11.7|&gt;=11.7,&lt;11.8|&gt;=11.8,&lt;11.9|&gt;=12.1,&lt;12.2’]</em><br>
<em>torchvision → pytorch-cuda[version='11.6.</em>|11.7.<em>|11.8.</em>|12.1.<em>']</em></p>
<p><em>Package pytorch conflicts for:</em><br>
<em>torchaudio → pytorch[version=‘1.10.0|1.10.1|1.10.2|1.11.0|1.12.0|1.12.1|1.13.0|1.13.1|2.0.0|2.0.1|2.1.0|1.9.1|1.9.0|1.8.1|1.8.0|1.7.1|1.7.0|1.6.0’]</em><br>
<em>torchvision → pytorch[version=‘1.10.0|1.10.1|1.10.2|1.11.0|1.12.0|1.12.1|1.13.0|1.13.1|2.0.0|2.0.1|2.1.0|1.9.1|1.9.0|1.8.1|1.8.0|1.7.1|1.7.0|1.6.0|1.5.1’]The following specifications were found to be incompatible with your system:</em></p>
<ul>
<li>
<ul>
<li>pytorch → sympy → __unix*</li>
</ul>
</li>
</ul>
<p><em>Your installed version is: not available</em></p>
<p><em>Note that strict channel priority may have removed packages required for satisfiability.</em></p>
</blockquote>
<p>I also tried:<br>
conda install pytorch torchvision torchaudio pytorch-cuda=<strong>11.8</strong> -c pytorch -c nvidia<br>
conda install pytorch torchvision torchaudio pytorch-cuda=<strong>11.2</strong> -c pytorch -c nvidia<br>
(the same CUDA as the root of my PC)<br>
conda install pytorch pytorch-cuda=12.1 -c pytorch -c nvidia<br>
pip3 install torch torchvision torchaudio --index-url <a href="https://download.pytorch.org/whl/cu121" rel="noopener nofollow ugc">https://download.pytorch.org/whl/cu121</a></p>
<p>They all fail…</p>
<p>I’m running Windows 11, with a RTX3060mobile</p>
<p>Objective: train classification models with BERT on my PC</p>
<p>Any suggestions on how to precced?</p>
<p>Thanks!</p>

ptrblck: <pre><code class="lang-python">python=3.12 
</code></pre>
<p>Your Python version might be too new so downgrade to <code>3.11</code> or <code>3.10</code>.</p>