Conda Environment Has No Name Visible In Conda Env List - How Do I Activate It At The Shell?


Answer :

Name-based reference of Conda environments only works for environments located in one of the directories listed in the envs_dirs configuration option (see conda config --describe envs_dirs). By default this corresponds to the envs/ subdirectory in the Conda installation. If you create an env outside of one of these directories, then you cannot use a name to reference it.


Option 1: Clone Into Directory


One option to use conda activate B3, is to recreate your B3 env in the default directory. You can use the --clone flag to accomplish this.


conda create --clone path/to/the/nameless_env -n named_env

Option 2: Add Parent Directory


Alternatively, you can add the parent directory of the environment in question to the envs_dirs configuration option.


conda config --append envs_dirs /path/to/the/parent_dir

Option 3: Symbolic Link


Another possibility is to create a symbolic link in one to the envs_dirs folders to the environment folder. It seems to work, but it is not a common practice, so it may have downsides that are unreported.



Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable