python – Trouble importing environment anaconda
- make yourself familiar with
condaon 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.
-
Condacan 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 themambasolver may take his time, but i have seenCondataking hours to finish. -
The
Mambasolver is the solver from the mamba project, which is a drop-in replacement ofCondawritten in c++, and therefore much faster than the originalConda. So, i recommend usingMambaover 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 existingCondainstallation that you like to keep. The recommended Way is to use theMambaforgeinstaller or themicromambaexecutable. -
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-Navigatoralongside ofMamba, but don’t clutter your base env with it. Instead, installAnaconda-Navigatorinto 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

