How do I resolve issues when everything in my mac messed up?
<p>my command line tools is set up by homebrew + pip. However, I installed macport trying to get some software but then turns out everything is messed up even after I removed macport... How could I re-set up my Mac for scientific computations including all the necessary command line tools (like vi, bash, they all have errors now and I do not want to solve them one by one)...</p>

<p>I am installing conda though trying to resolve this issue...</p>

<p>Errors include:</p>

<pre><code>$Bash
dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib
  Referenced from: /usr/local/bin/bash
  Reason: image not found
Trace/BPT trap: 5
</code></pre>

<p>I do not want to list all errors and solve one by one... I just want to reinstall and reset up...</p>

<p>This isn't a python question...</p>

<p>For future reference, just use the anaconda distribution of python. Don't bother with homebrew or macports. You'll never have to mess with this</p>

python bash osx