I created a environment by conda activate env
and then input
conda install -c conda-forge jupyterlab
then I am stuck by
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: -
I can install other libraries, but am only stuck by jupyterlab
Please try mamba
: it is both faster, and gives better error messages when it fails.
Combine this with a (checked in) environment.yml
that more full specifies what you need rather than iteratively re-solving. Whether creating or updating the mamba env update
path is a good one to learn, as you only need to know one command.
Putting these together:
# environment.yml
channels:
- conda-forge
- nodefaults
dependencies:
- jupyterlab
# not _required_, but it's best to have _something_ to pare down the solve
- python >=3.10,<3.11
then:
mamba env update --file environment.yml --name my-env
Finally, you can use conda-lock
to generate long-term reproducible environments, even for multiple platforms.
1 Like
I got this and was stuck by:
conda install mamba -n base -c conda-forge
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: \ 0^[failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: /
Then perhaps start with a brand new Mambaforge:
The very latest version 4.14.0-0 might be flaky, so a slightly older one might be better.