I have an installation of miniconda3 where I have created a virtual environment called py35. I have some libraries that I only want to use from within this environment. hence they are under
/.../miniconda3/envs/py35/libs
However they are not found from within the environment as LD_LIBRARY_PATH does not contain said folder. I now want to set LD_LIBRARY_PATH to include the /lib only when I am in the virtual environment.
I was thinking of modifying the activate script miniconda uses to start the environment but am not quite sure if this is standard practice or if there is an easier way to achieve this.
LD_LIBRARY_PATH
I cannot use unset. Instead I doexport LD_LIBRARY_PATH=${LD_LIBRARY_PATH/'PATH_I_ADDED
/""}` in the deactivation script – Fascine