Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stuck at Solving Environment on Anaconda

Tags:

conda

anaconda

I am running OSX Catalina. After downloading Anaconda, I'm having trouble downloading external packages. I tried in both the GUI and the terminal, but the process keeps getting stuck at "Solving environment".

I understand creating a new environment can be a workaround, but I would rather fix the issue at hand.

Any ideas?

like image 900
Johnson Sam Avatar asked Sep 04 '20 03:09

Johnson Sam


People also ask

How long does it take conda to solve environment?

Conda takes 20+ minutes to solve environment when package is already installed.

How do you get out of the environment conda?

To exit the virtual environment, use the command conda deactivate . If you run conda info --envs again, there is no * in front of env_name . That's because the env_name virtual environment is no longer active.

How do you fix solving environment failed with initial frozen solve retrying with flexible solve?

To Solve Solving environment: failed with initial frozen solve. Retrying with flexible solve Error Just create an env and activate that env and then do the install and your error will be solved.

How long does it take to create a new environment in Anaconda?

This takes about 15 minutes to complete and works for ESMValTool v2. 4.0 as well :) Beta Was this translation helpful?


4 Answers

The following steps may work to resolve the issue.

conda config --remove channels conda-forge
conda config --add channels conda-forge

if it doesn't work then try this

conda update conda

if nothing works try seeing this github solution, it worked for many.

like image 161
Jatin Mehrotra Avatar answered Oct 16 '22 06:10

Jatin Mehrotra


use this:

conda config --set channel_priority strict

pay attention that it is channel_priority and not priority_channel

like image 38
Слава Иванников Avatar answered Oct 16 '22 06:10

Слава Иванников


running

conda config --set channel_priority flexible

worked for me

Update, still ran into some issues so I found Mamba, and oh my god my life changed conda is the worst package manager ever

all my issues were solved when I used mamba

# install mamba
conda install -n base conda-forge::mamba

# use mamba
mamba install pandas
like image 14
AbdA Avatar answered Oct 16 '22 05:10

AbdA


Please, check that python is actually listed in environment.yml or conda create -n your_environment --file requirements.txt python=3.7. Otherwise, conda is traversing all versions of python available. Check that Python is listed.

like image 8
andreiliphd Avatar answered Oct 16 '22 07:10

andreiliphd