How to set environment variables can be found in the [docs]( https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#set-env-vars).
And there also seem to be [different ways]( https://stackoverflow.com/a/62508395/991496).
A. Zimdars, D. Chickering, and C. Meek. UAI '01: Proceedings of the 17th Conference in Uncertainty in Artificial Intelligence
, page 580--588. San Francisco, CA, USA, Morgan Kaufmann Publishers Inc., (2001)