I am in trouble while switching to my new env using colab. I successful created the env ‘new_env’ by
1 | !conda create -n new_env python==x.x |
and through
1 | !conda env list |
which prints
1 | # conda environments: |
I am sure I made it.
However, i can not use this new env. And finally, i find that
1 | !source activate new_env && conda env list |
will print
1 | # conda environments: |
and
1 | %%bash |
will print
1 | # conda environments: |
So, I realize that either should i add ‘source activate new_env &&’ before all bash commands or use ‘%%bash’.
By the way, it is even harder to install environment.yml in base environment.