title: CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'
body: <p>I'm trying to create a virtual environment using <code>conda</code> on Google Colaboratory.
  However, I can't activate with the following error.</p>
  <pre><code>    CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
  To initialize your shell, run
  
      $ conda init &lt;SHELL_NAME&gt;
  
  Currently supported shells are:
    - bash
    - fish
    - tcsh
    - xonsh
    - zsh
    - powershell
  
  See 'conda init --help' for more information and options.
  
  IMPORTANT: You may need to close and restart your shell after running 'conda init
  </code></pre>
  <p>Three things that I've tried:
  One is to add the following code to <code>~/.bashrc</code></p>
  <pre><code># &gt;&gt;&gt; conda init &gt;&gt;&gt;
  __conda_setup=&quot;$(CONDA_REPORT_ERRORS=false '$HOME/anaconda3/bin/conda' shell.bash hook 2&gt; /dev/null)&quot;
  if [ $? -eq 0 ]; then
      \eval &quot;$__conda_setup&quot;
  else
      if [ -f &quot;$HOME/anaconda3/etc/profile.d/conda.sh&quot; ]; then
          . &quot;$HOME/anaconda3/etc/profile.d/conda.sh&quot;
          CONDA_CHANGEPS1=false conda activate base
      else
          \export PATH=&quot;$PATH:$HOME/anaconda3/bin&quot;
      fi
  fi
  unset __conda_setup
  # &lt;&lt;&lt; conda init &lt;&lt;&lt;
  
  # ~~~~~~~~~~~~
  conda create --name XXXXXX python=3.6 -y
  conda activate XXXXXX 
  # ~~~~~~~~~~~~
  </code></pre>
  <p>Secondly, I added the following code to <code>~/.bashrc</code></p>
  <pre><code>export PATH=&quot;$PYENV_ROOT/versions/anaconda3-2.5.0/bin/:$PATH&quot;
  </code></pre>
  <p>Thirdly, I added the following code to <code>~/.bashrc</code></p>
  <pre><code>. /opt/anaconda3/etc/profile.d/conda.sh
  conda activate base
  </code></pre>
  <p>If I try to activate each of them, I get the same error. If anyone knows how to fix it, please share your wisdom.</p>
  <p>Thanks</p>