title: Anaconda: ModuleNotFoundError: No module named 'conda'
body: <p>Please note this error is different than what shows up (and has answer) in stackoverflow. It is definitely not duplicated.</p>
  
  <p>I have seen this error before and has been able to fix it by modifying the PATH to include conda's path like below:</p>
  
  <pre><code>export PATH=/opt/cloudera/parcels/Anaconda/bin:$PATH
  echo $PATH
  /opt/cloudera/parcels/Anaconda/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/git/bin:/home/rxie/bin
  </code></pre>
  
  <p>For unknown reason, the error pops up again here, and doesn't go away even after I started a new session.</p>
  
  <p>The last command I executed was:</p>
  
  <pre><code>conda upgrade -c conda-forge imbalanced-learn
  </code></pre>
  
  <p>and the command completed successfully.</p>
  
  <p>What's wrong with conda? </p>
  
  <p>Here is the directory of Anaconda:</p>
  
  <pre><code>#ls -la /opt/cloudera/parcels/Anaconda/bin/conda
  -rwxrwxr-x 1 root root 531 Feb 18 16:29 /opt/cloudera/parcels/Anaconda/bin/conda
  </code></pre>
  
  <p>Note I have been using root to install packages.</p>
  
  <p>Any clue is appreciated.</p>
  
  <p>Thank you very much.</p>
  
  <p>UPDATE:
  Thank you @merv, I read your answer to the other thread. Not exactly same symptom though, I indeed tried out the first step which is to <code>sudo pip install conda</code>, after that, expectedly conda still throw same error so there is no way to continue with step 2 in your answer of <code>conda install --revision &lt;n-1&gt;</code></p>