I run python 3, mostly under linux but shall work with windows also.
Without conda, the shebang line is
#! /usr/bin/python3
giving the location of the python interpreter. But what if i use conda??? Then the interpreter depends on the environment.... But how can i manage that my script runs in any environment??
There seems to be a variable in conda, $CONDA_DEFAULT_ENV
holding the environment.
If i have activated sth but base the interpreter is e.g. in
/home/ernst/.conda/envs/$CONDA_DEFAULT_ENV/bin/python
but for base it is just /opt/conda/bin/python
on linux.
Well how to get all this under a hood also platform transparent??