The package upsetr was installed with conda. It works in my terminal
conda activate upsetr
conda deactivate
I was trying to invoke conda in a Makefile , something like
SHELL=/bin/bash
test:
conda activate upsetr && conda deactivate
but it doesn't work:
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run
$ conda init <SHELL_NAME>
Currently supported shells are:
I can reproduce this error by piping the command into bash
$ echo 'conda activate upsetr && conda deactivate' | bash
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run
$ conda init <SHELL_NAME>
Why does it fail ?
Is the conda initialization stuff in your .bash_profile or .bashrc and executed by default?
Update: Hmm, I guess I never tried echoing this to bash, it indeed doesn't work. There's probably some bash magic behind that.
it's in bashrc
Yeah, but:
Returns nothing, so somehow bash is behaving differently.
correction I see it in both files bashrc and bash_profilewrong command