0

Often when using conda environments, the environment variables set in my rc file are overwritten (experienced with both bash as zsh), particularly my $PATH variable. It does not always happen though; I just experienced this, then tried to reproduce it but the second time it did not happen.

After activating the conda environment (source activate py35) I can resource my rc file (source ~/.zshrc) to recover my environment variables but can I avoid this extra step?

Steven C. Howell
  • 16,902
  • 15
  • 72
  • 97
  • Are you sourcing the environment through another script i.e. may be in a sub-shell? That could be a reason why your environment is lost after the sub-shell exits. – Inian Sep 29 '16 at 13:52
  • @Inian, I am not using a script to source the conda environment, just my shell. – Steven C. Howell Sep 29 '16 at 13:55

0 Answers0