Check env that a script runs under

0 views
Skip to first unread message

Alain Désilets

unread,
Apr 9, 2021, 7:21:29 AM4/9/21
to Anaconda - Public
I have a bunch of scripts that are meant to run inside a conda environment that is generated from an environment.yml file.

Is there a way that those scripts can check that they are indeed running inside a conda environment that fits the description in that file?

Note that I don't really care if the env was actually generated from that file, but I do care that the env does fit things like:
- version of python interpreter
- all modules provided in the environment.yml file are installed and are at the correct version.

Thx.
Reply all
Reply to author
Forward
0 new messages