Why conda installs old pytorch with by default with cudatoolkit=11.2
I am trying to install conda for cudatoolkit=11.2 on google colab using:
conda install pytorch cudatoolkit=11.2 -c pytorch -c nvidia

But why does it install old pytorch=1.0.0 version not something &gt;1.6?
If I try to force install pytorch=1.6, it gives the following error:
UnsatisfiableError: The following specifications were found to be incompatible with a past
explicit spec that is not an explicit spec in this operation (cudatoolkit):

  - cudatoolkit=11.2
  - pytorch=1.6 -&gt; cudatoolkit[version='&gt;=10.1,&lt;10.2|&gt;=10.2,&lt;10.3|&gt;=9.2,&lt;9.3']

The following specifications were found to be incompatible with each other:

Output in format: Requested package -&gt; Available versions

Package setuptools conflicts for:
setuptools
python=3.7 -&gt; pip -&gt; setuptools
conda[version='&gt;=4.10.3'] -&gt; setuptools[version='&gt;=31.0.1']
wheel -&gt; setuptools
pip -&gt; setuptools
...


EDIT based on the answer:
When I try to use conda install -c conda-forge pytorch cudatoolkit=11.2, it gives the following error.
PackagesNotFoundError: The following packages are not available from current channels:

  - cudatoolkit=11.2
  - __glibc[version='&gt;=2.17,&lt;3.0.a0']

Current channels:

  - https://conda.anaconda.org/conda-forge/linux-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://repo.anaconda.com/pkgs/main/linux-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/free/linux-64
  - https://repo.anaconda.com/pkgs/free/noarch
  - https://repo.anaconda.com/pkgs/r/linux-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/pro/linux-64
  - https://repo.anaconda.com/pkgs/pro/noarch


The pytorch channel doesn't yet have any pytorch builds compatible with cudatoolkit=11.2. What the solver finds is an old version of PyTorch where they did not have proper upper bounds on the dependency version.
If you insist on cudatoolkit=11.2, then you'll need to stick to the Conda Forge stack:
conda install -c conda-forge pytorch cudatoolkit=11.2

Otherwise, if you want the official PyTorch builds, then they build up to v11.1 compatible versions:
conda install -c pytorch -c conda-forge pytorch cudatoolkit=11.1

