title: Cleaning up what Anaconda did to my .bash_profile
body: <p>So I had lots of stuff working well for Python on a Mac OSX.  But matplotlib was out of date.  I tried to update, failed.  So I uninstalled anaconda, and reinstalled.  That was not my brightest idea.  Several things have changed.  Most obviously <code>(base)</code> now appears before my terminal prompt.  But more significantly, my installation of <code>sphinx</code> seems to not be working:</p>
  <blockquote>
  <p>(base) MU00062871X:~ me$ sphinx-autobuild . _build/html</p>
  <p>-bash: sphinx-autobuild: command not found</p>
  </blockquote>
  <p>Okay, that's problematic because I kind of depend on <code>sphinx</code> for handling some documentation.  So, let's try reinstalling it with pip: nope, sphinx is already there:</p>
  <blockquote>
  <p>Requirement already satisfied: pytz&gt;=2015.7 in /opt/anaconda3/lib/python3.7/site-packages (from babel!=2.0,&gt;=1.3-&gt;sphinx) (2019.3)</p>
  </blockquote>
  <p>Alright, perhaps something happened to my .bash_profile...  Oh yeah, it looks like my Anaconda and Canopy installations are at war.</p>
  <pre><code># added by Anaconda 2.1.0 installer
  export PATH=&quot;/Users/me/anaconda/bin:$PATH&quot;
  
  
  # Added by Canopy installer on 2016-08-08
  # VIRTUAL_ENV_DISABLE_PROMPT can be set to '' to make the bash prompt show that Canopy is active, otherwise 1
  #alias activate_canopy=&quot;source '/Users/jomiller/Library/Enthought/Canopy_64bit/User/bin/activate'&quot;
  #VIRTUAL_ENV_DISABLE_PROMPT=1 source '/Users/me/Library/Enthought/Canopy_64bit/User/bin/activate'
  
  # added by Anaconda3 4.3.1 installer
  export PATH=&quot;/Applications/anaconda/bin:$PATH&quot;
  
  export PKG_CONFIG_PATH=&quot;$PKG_CONFIG_PATH:/usr/local/Cellar/libffi/3.2.1/lib/pkgconfig/&quot;
  # added by Anaconda3 2019.10 installer
  # &gt;&gt;&gt; conda init &gt;&gt;&gt;
  # !! Contents within this block are managed by 'conda init' !!
  __conda_setup=&quot;$(CONDA_REPORT_ERRORS=false '/opt/anaconda3/bin/conda' shell.bash hook 2&gt; /dev/null)&quot;
  if [ $? -eq 0 ]; then
      \eval &quot;$__conda_setup&quot;
  else
      if [ -f &quot;/opt/anaconda3/etc/profile.d/conda.sh&quot; ]; then
          . &quot;/opt/anaconda3/etc/profile.d/conda.sh&quot;
          CONDA_CHANGEPS1=false conda activate base
      else
          \export PATH=&quot;/opt/anaconda3/bin:$PATH&quot;
      fi
  fi
  unset __conda_setup
  # &lt;&lt;&lt; conda init &lt;&lt;&lt;
  </code></pre>
  <p>My main concern is how to get sphinx working again.  But secondarily, I'd like <code>(base)</code> to no longer appear.</p>
  <p>Suggestions?</p>
  <p><strong>edit</strong>
  I've discovered that I also had sphinx at</p>
  <blockquote>
  <p>./anaconda/lib/python2.7/site-packages</p>
  </blockquote>
  <p>I've now used pip to upgrade.  So now it sits at:</p>
  <blockquote>
  <p>/usr/local/lib/python3.7/site-packages</p>
  </blockquote>
  <p>But if I type <code>sphinx</code> at the command prompt, I get</p>
  <blockquote>
  <p>-bash: sphinx: command not found</p>
  </blockquote>
  <p>I haven't worked with paths etc in years, so I don't know what's going on here.  It really seems that it's all there, but I can't figure out how to get it to run.  I just need one of these to work...</p>