Conda set LD_LIBRARY_PATH for env only [duplicate]
You can set environment variables when an environment is activated by editing the activate.d/env_vars.sh script. See here: https://conda.io/docs/user-guide/tasks/manage-environments.html#macos-and-linux The key portions from that link are: Locate the directory for the conda environment in your Terminal window, such as /home/jsmith/anaconda3/envs/analytics. Enter that directory and create these subdirectories and files: cd /home/jsmith/anaconda3/envs/analytics mkdir -p ./etc/conda/activate.d mkdir -p … Read more