title: conda source deactivate : bash: deactivate: No such file or directory
body: <p>I installed Conda at a different location than the default location on Ubuntu 16.4 using the official installation helper. </p>
  
  <p>Now <code>conda create</code> and <code>source activate</code> works, but <code>source deactivate</code> gives me the error: </p>
  
  <pre><code>(deep) yuqiong@yuqiong-G7-7588:/media/yuqiong/DATA$ source deactivate
  bash: deactivate: No such file or directory
  </code></pre>
  
  <p>I checked this issue on Github: <a href="https://github.com/conda/conda/issues/458" rel="noreferrer">#458: "Using <code>source deactivate</code> on a conda env fails unless the root anaconda directory is in PATH"</a>. It seems to be related, but I do not understand what happens when I run <code>source deactivate</code> inside a conda environment. Is it because something is wrong with my PATH variables?</p>
  
  <p>Here is the part of my <code>/.bashrc</code> related to Conda, if helpful. </p>
  
  <p>Thanks so much for your help!</p>
  
  <pre><code># added by Anaconda3 5.3.1 installer
  # &gt;&gt;&gt; conda init &gt;&gt;&gt;
  # !! Contents within this block are managed by 'conda init' !!
  __conda_setup="$(CONDA_REPORT_ERRORS=false '/media/yuqiong/DATA/Anaconda3/bin/conda' shell.bash hook 2&gt; /dev/null)"
  if [ $? -eq 0 ]; then
      \eval "$__conda_setup"
  else
      if [ -f "/media/yuqiong/DATA/Anaconda3/etc/profile.d/conda.sh" ]; then
          . "/media/yuqiong/DATA/Anaconda3/etc/profile.d/conda.sh"
          CONDA_CHANGEPS1=false conda activate base
      else
          \export PATH="/media/yuqiong/DATA/Anaconda3/bin:$PATH"
      fi
  fi
  unset __conda_setup
  # &lt;&lt;&lt; conda init &lt;&lt;&lt;
  
  ### conda shortcuts
  function actv() {
      #do things with parameters like $1 such as
      source activate "$1"
  }
  </code></pre>