Installation with conda is unbearably slow?

I realize this is an odd problem, but I am trying to reinstall conda on my windows machine, using:

conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch -c conda-forge

but it is unbearably slow?

In the conda prompt, I get the following:

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: done
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment:

with no progress after 30 minutes. I am sitting on an excellent internet connection in northern europe (speedtest.net just gave me 200+ mbps).
any ideas for adding mirrors or something to speed it up?

1 Like

Hey @miturian

That’s happening to me sometimes and I don’t know the answer why. Maybe the problem with inconsistent package dependencies.

The solution for you might be to create a new environment with conda install -n new_env python=3 and then install pytorch on it along with packages you need for your research

As @zetyquickly explained, the issue is not your internet connection or the conda server, but the slow dependency resolution via conda. Using a new (and clean) environment could solve it.

1 Like