python – Trouble importing environment anaconda
- make yourself familiar with
conda
on the commandline. To import an environment that was before exported into a .yaml file, use
conda env create --file my-env.yml
If your conda
isn’t in your path, you can use the Anaconda-Navigator
to start a terminal with the base environment active by using the green button marked in the image in the Environments
/ base
section of Anaconda-Navigator
. There you can use the command.
You will see in more detail what is happening on the commandline.
-
Conda
can get awfully slow with resolving conflicts in larger environments. The Mamba solver, written in c++ (instead of python like the originalConda
) is much faster and that may help a lot in cases like this. Even themamba
solver may take his time, but i have seenConda
taking hours to finish. -
The
Mamba
solver is the solver from the mamba project, which is a drop-in replacement ofConda
written in c++, and therefore much faster than the originalConda
. So, i recommend usingMamba
over the originalConda
. It is much faster thanConda
. You can install it into an existingConda
-installation, and although it is not the recomanded way, it might be much easier to do so if there is an existingConda
installation that you like to keep. The recommended Way is to use theMambaforge
installer or themicromamba
executable. -
If you actually decide to ditch the
Anaconda
-installation and start with a freshMamabforge
-installation, but still like to have the comfort of theAnaconda-Navigator
, you can install theAnaconda-Navigator
alongside ofMamba
, but don’t clutter your base env with it. Instead, installAnaconda-Navigator
into it’s own environment using
mamba create -n anaconda-navigator anaconda-navigator -c anaconda
This will install Anaconda-Navigator
into its own Environment (as Anaconda
-distribution itself should have done, but sadly didn’t). Fun part: You will see the Anaconda-Navigator
environment when listed on the Commandline with
conda env list
but not inside the Anaconda-Navigator
, it’s hiding itself.
Read more here: Source link