activate conda in shell with this command
eval "$(/home/localstack/anaconda3/bin/conda shell.bash hook)"
configure bioconda
conda config --add channels defaults
conda config --add channels bioconda
conda config --add channels conda-forge
conda config --set channel_priority strict
create the parent env
conda create --name parent-env -y
create child env
conda create --name child-env simba -y
run the parent script
conda run -n parent-env python ./parent.py
Output:
['./parent.py']
simba is not available in the env
['./child.py']
We just imported simba. In the current env, we have simba!