Following these suggestions and these instructions I want to create a conda environment bar
from within a Python script. My problem is that I run the script while activated another env foo
. As in the examples from the docs - the commands work, however my new env is created under the current one, like here:
base MYHOME/miniconda3
foo * MYHOME/miniconda3/envs/foo
MYHOME/miniconda3/envs/foo/envs/bar
Is there any way to make it top level and thus its name recognised by conda?
My command in the script (as in the docs) is:
run_command(Commands.CREATE, "-n", "bar", "python=3", "flask")